aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-08-10 12:41:20 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-08-10 12:41:20 -0300
commita967856ab6691d2342dd762f7ba2b7a72b4f099d (patch)
tree3f5995e88149837ab321b2d0b210c62cd5a592d9 /manifests/subsystems
parentdf6c6d4935b5a7082336594dd32e52402815d1a5 (diff)
downloadpuppet-nodo-a967856ab6691d2342dd762f7ba2b7a72b4f099d.tar.gz
puppet-nodo-a967856ab6691d2342dd762f7ba2b7a72b4f099d.tar.bz2
Adding $shorewall_dmz_iface
Diffstat (limited to 'manifests/subsystems')
-rw-r--r--manifests/subsystems/firewall.pp9
1 files 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',