Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use custom_jails parameter #100

Merged
merged 2 commits into from
Dec 29, 2018

Conversation

kobybr
Copy link
Contributor

@kobybr kobybr commented Dec 17, 2018

Fixes issue #99

manifests/init.pp Outdated Show resolved Hide resolved
manifests/config.pp Outdated Show resolved Hide resolved
Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this is considered breaking but this does improve things IMHO.

@ekohl ekohl added the enhancement New feature or request label Dec 17, 2018
if $config_custom_jails {
create_resources('fail2ban::jail', $config_custom_jails)
}
create_resources('fail2ban::jail', $::fail2ban::custom_jails)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aren't the leading :: on a variable considered bad practice?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bad practice is overstating it IMHO. They are needed in Puppet 3 to match Puppet 4+ behavior without them. With it's always absolute. Given the rest of the module is still using the absolute version I'd prefer consistency over the modern way.

Copy link
Member

@Dan33l Dan33l left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is a breaking change for any user calling the module like this :

class { 'fail2ban' :
  custom_jails => undef,
  ...
}

With this PR it is impossible to use undef value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants