From: Silvio Rhatto Date: Fri, 26 Sep 2014 20:20:00 +0000 (-0300) Subject: Check zone parameter on firewall class X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=637ba6a7d487bd441bbd0621a3f58a7ec1201ae3;p=puppet-firewall.git Check zone parameter on firewall class --- diff --git a/manifests/init.pp b/manifests/init.pp index 7543d1a..52dd6e1 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -72,11 +72,13 @@ class firewall( order => '1', } - shorewall::host { "${device}": - name => "${device}:0.0.0.0/0", - zone => 'net', - options => '', - order => '2', + if $zone == '-' { + shorewall::host { "${device}": + name => "${device}:0.0.0.0/0", + zone => 'net', + options => '', + order => '2', + } } shorewall::masq { "${device}":