From: mh Date: Tue, 1 Mar 2011 23:56:36 +0000 (+0100) Subject: do it as a define so we can easily pass multiple target zones X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=e732ebc597c6ea2b95b84445a1866793d9b90d0d;p=puppet-shorewall.git do it as a define so we can easily pass multiple target zones --- diff --git a/manifests/rules/out/ekeyd.pp b/manifests/rules/out/ekeyd.pp index ef6f20a..858dca4 100644 --- a/manifests/rules/out/ekeyd.pp +++ b/manifests/rules/out/ekeyd.pp @@ -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'; } } -