summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-09-26 17:20:00 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-09-26 17:20:00 -0300
commit637ba6a7d487bd441bbd0621a3f58a7ec1201ae3 (patch)
tree606131f77a4729e61711d34cae5316bc98a4b83b
parentc96a48b1abffd965e3b0d33ef2cf0b46c573102a (diff)
downloadpuppet-firewall-637ba6a7d487bd441bbd0621a3f58a7ec1201ae3.tar.gz
puppet-firewall-637ba6a7d487bd441bbd0621a3f58a7ec1201ae3.tar.bz2
Check zone parameter on firewall class
-rw-r--r--manifests/init.pp12
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}":