]> gitweb.fluxo.info Git - puppet-firewall.git/commitdiff
Adding device and zone parameters to firewall class (2)
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 26 Sep 2014 19:40:46 +0000 (16:40 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 26 Sep 2014 19:40:46 +0000 (16:40 -0300)
manifests/init.pp

index 853456f097f13a86be1b4615404c8c35b42a549d..7543d1ab9d05b0a63c008de59311b5e0ad1f9e68 100644 (file)
@@ -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",