]> gitweb.fluxo.info Git - puppet-shorewall.git/commitdiff
do it as a define so we can easily pass multiple target zones
authormh <mh@immerda.ch>
Tue, 1 Mar 2011 23:56:36 +0000 (00:56 +0100)
committermh <mh@immerda.ch>
Tue, 1 Mar 2011 23:56:36 +0000 (00:56 +0100)
manifests/rules/out/ekeyd.pp

index ef6f20a200af8809e7be1b4827a761cc3727cb61..858dca4b630c197286d27634968c65ba6cd4d514 100644 (file)
@@ -1,11 +1,10 @@
-class shorewall::rules::out::ekeyd($ekeyd_host) {
-  shorewall::rule { 'me-net-tcp_ekeyd':
+define shorewall::rules::out::ekeyd($ekeyd_host) {
+  shorewall::rule { "me-${name}-tcp_ekeyd":
     source          => '$FW',
-    destination     => "net:${ekeyd_host}",
+    destination     => "${name}:${ekeyd_host}",
     proto           => 'tcp',
     destinationport => '8888',
     order           => 240,
     action          => 'ACCEPT';
   }
 }
-