diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-09-26 17:20:00 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-09-26 17:20:00 -0300 |
commit | 637ba6a7d487bd441bbd0621a3f58a7ec1201ae3 (patch) | |
tree | 606131f77a4729e61711d34cae5316bc98a4b83b | |
parent | c96a48b1abffd965e3b0d33ef2cf0b46c573102a (diff) | |
download | puppet-firewall-637ba6a7d487bd441bbd0621a3f58a7ec1201ae3.tar.gz puppet-firewall-637ba6a7d487bd441bbd0621a3f58a7ec1201ae3.tar.bz2 |
Check zone parameter on firewall class
-rw-r--r-- | manifests/init.pp | 12 |
1 files changed, 7 insertions, 5 deletions
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}": |