From: Daniel Kuehn Date: Fri, 6 Jun 2014 15:25:14 +0000 (+0200) Subject: (type) Fixed bug which arbitrarily limited which chains iniface and outiface paramete... X-Git-Tag: 1.3.0~1^2~17^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=b457ea14236077cf2c70bde91ecf49d21db14b12;p=puppet-modules%2Fpuppetlabs-firewall.git (type) Fixed bug which arbitrarily limited which chains iniface and outiface parameters are set in rules, they are allowed in all chains --- diff --git a/lib/puppet/type/firewall.rb b/lib/puppet/type/firewall.rb index e6be89e..dd09982 100644 --- a/lib/puppet/type/firewall.rb +++ b/lib/puppet/type/firewall.rb @@ -973,20 +973,6 @@ Puppet::Type.newtype(:firewall) do # Now we analyse the individual properties to make sure they apply to # the correct combinations. - if value(:iniface) - unless value(:chain).to_s =~ /INPUT|FORWARD|PREROUTING/ - self.fail "Parameter iniface only applies to chains " \ - "INPUT,FORWARD,PREROUTING" - end - end - - if value(:outiface) - unless value(:chain).to_s =~ /OUTPUT|FORWARD|POSTROUTING/ - self.fail "Parameter outiface only applies to chains " \ - "OUTPUT,FORWARD,POSTROUTING" - end - end - if value(:uid) unless value(:chain).to_s =~ /OUTPUT|POSTROUTING/ self.fail "Parameter uid only applies to chains " \