From b457ea14236077cf2c70bde91ecf49d21db14b12 Mon Sep 17 00:00:00 2001 From: Daniel Kuehn Date: Fri, 6 Jun 2014 17:25:14 +0200 Subject: [PATCH] (type) Fixed bug which arbitrarily limited which chains iniface and outiface parameters are set in rules, they are allowed in all chains --- lib/puppet/type/firewall.rb | 14 -------------- 1 file changed, 14 deletions(-) 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 " \ -- 2.45.2