Skip to content

Commit

Permalink
Merge pull request #441 from mhaskel/MODULES-1572
Browse files Browse the repository at this point in the history
MODULES-1572 - Fix logic broken from MODULES-1309
  • Loading branch information
cmurphy committed Dec 12, 2014
2 parents 778ee8b + 12874e2 commit 902abe5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion manifests/linux/debian.pp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
}

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':
Expand Down
5 changes: 1 addition & 4 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@
}
}
'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 {
Expand Down

0 comments on commit 902abe5

Please sign in to comment.