From 637ba6a7d487bd441bbd0621a3f58a7ec1201ae3 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 26 Sep 2014 17:20:00 -0300 Subject: Check zone parameter on firewall class --- manifests/init.pp | 12 +++++++----- 1 file 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}": -- cgit v1.2.3