From: Sharif Nassar Date: Wed, 7 Aug 2013 21:22:53 +0000 (-0700) Subject: Only workaround if we're using the old package. X-Git-Tag: 0.4.2~2^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=a9dc91784463647c6d070ade91302f2a3e25bb6c;p=puppet-modules%2Fpuppetlabs-firewall.git Only workaround if we're using the old package. --- diff --git a/manifests/linux/debian.pp b/manifests/linux/debian.pp index 2a0f7e5..4d28bc4 100644 --- a/manifests/linux/debian.pp +++ b/manifests/linux/debian.pp @@ -21,7 +21,8 @@ class firewall::linux::debian ( ensure => present, } - if($::operatingsystemrelease =~ /^6\./ and $enable == true) { + if($::operatingsystemrelease =~ /^6\./ and $enable == true + 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':