Accidentally changed some behavior and broke things with the fix for
MODULES-1309
}
if($::operatingsystemrelease =~ /^6\./ and $enable == true
- and versioncmp($::iptables_persistent_version, '0.5.0') < 0 and ! $service_name) {
+ and versioncmp($::iptables_persistent_version, '0.5.0') < 0) {
# This fixes a bug in the iptables-persistent LSB headers in 6.x, without it
# we lose idempotency
exec { 'iptables-persistent-enable':
}
}
'Debian': {
- if $::operatingsystemrelease =~ /^6\./ and versioncmp($::iptables_persistent_version, '0.5.0') < 0 {
- $service_name = undef
- $package_name = 'iptables-persistent'
- } elsif $::operatingsystem == 'Debian' and versioncmp($::operatingsystemrelease, '8.0') >= 0 {
+ if $::operatingsystem == 'Debian' and versioncmp($::operatingsystemrelease, '8.0') >= 0 {
$service_name = 'netfilter-persistent'
$package_name = 'netfilter-persistent'
} else {