-
Notifications
You must be signed in to change notification settings - Fork 457
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
MODULES-1309 - Make package and service names configurable #436
Conversation
590a6a9
to
c6e4a9c
Compare
if $::operatingsystemrelease =~ /^6\./ and versioncmp($::iptables_persistent_version, '0.5.0') < 0 { | ||
$service = undef | ||
$package = 'iptables-persistent' | ||
} elsif $::operatingsystem == 'Debian' and versioncmp($::operatingsystemrelease, '8') >= 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suspect that line 31 of firewall::params will not do what we intend in my environment.
# facter -p operatingsystemrelease
jessie/sid
also, do we need to account for both packages?
# dpkg -l | grep iptables
ii iptables 1.4.21-2+b1 amd64 administration tools for packet filtering and NAT
ii iptables-persistent 1.0.2 all boot-time loader for netfilter rules, iptables plugin
Thanks Morgan: You wound up touching a few more files than I had imagined on first blush with this issue. -- Hugh |
615cdd2
to
d598280
Compare
@hesco and the iptables package is defined at https://github.com/puppetlabs/puppetlabs-firewall/blob/master/manifests/linux.pp#L22-L24, so we should be good for that. I think the general thought is that |
@hesco oh, and yes, this should make it in for 1.3.0 |
) { | ||
$ensure = running, | ||
$service = $::firewall::params::service, | ||
$package = $::firewall::params::package, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://docs.puppetlabs.com/guides/module_guides/bgtm.html#b-parameters would say that this should be package_name
This was motivated by a need to make this work on Debian Jessie.
d598280
to
f9a2db9
Compare
MODULES-1309 - Make package and service names configurable
This was motivated by a need to make this work on Debian Jessie.