From a967856ab6691d2342dd762f7ba2b7a72b4f099d Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 10 Aug 2011 12:41:20 -0300 Subject: Adding $shorewall_dmz_iface --- manifests/subsystems/firewall.pp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/manifests/subsystems/firewall.pp b/manifests/subsystems/firewall.pp index 75b2b17..3de9089 100644 --- a/manifests/subsystems/firewall.pp +++ b/manifests/subsystems/firewall.pp @@ -203,8 +203,13 @@ class firewall { # DMZ Configuration # if $shorewall_dmz { - shorewall::host { "eth0-dmz": - name => 'eth0:192.168.1.0/24', + $shorewall_dmz_iface = $shorewall_dmz_iface ? { + '' => 'eth0', + default => $shorewall_dmz_iface, + } + + shorewall::host { "$shorewall_dmz_iface-dmz": + name => "$shorewall_dmz_iface:192.168.1.0/24", zone => 'dmz', options => '', order => '3', -- cgit v1.2.3