summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-09-26 16:40:46 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-09-26 16:40:46 -0300
commita5d371aefc402d6594abd41b9af64dcf20a123b9 (patch)
tree00cd314d63a22664af33a78c35bf4f8b2d801db4
parent4f696829df9a134c7a8276b1363d9205192c946f (diff)
downloadpuppet-firewall-a5d371aefc402d6594abd41b9af64dcf20a123b9.tar.gz
puppet-firewall-a5d371aefc402d6594abd41b9af64dcf20a123b9.tar.bz2
Adding device and zone parameters to firewall class (2)
-rw-r--r--manifests/init.pp6
1 files changed, 3 insertions, 3 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 853456f..7543d1a 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -166,7 +166,7 @@ class firewall(
#
# Traffic shapping
#
- shorewall::tcdevices { "eth0":
+ shorewall::tcdevices { "${device}":
in_bandwidth => "$in_bandwidth",
out_bandwidth => "$out_bandwidth",
}
@@ -189,7 +189,7 @@ class firewall(
shorewall::tcclasses { "ssh":
order => "1",
- interface => "eth0",
+ interface => "${device}",
rate => "4*full/100",
ceil => "full",
priority => "1",
@@ -197,7 +197,7 @@ class firewall(
shorewall::tcclasses { "default":
order => "2",
- interface => "eth0",
+ interface => "${device}",
rate => "6*full/100",
ceil => "full",
priority => "2",