diff options
author | mh <mh@immerda.ch> | 2011-03-02 00:56:36 +0100 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2011-06-21 12:15:41 -0400 |
commit | 1817ee8063a1552c7594c683d9aea5c97ab345c4 (patch) | |
tree | 454faa2e6347109c71607155855d12291c005fa1 /manifests/rules/out/ekeyd.pp | |
parent | c9662005e3d093b47302473488a9557b4a5520db (diff) | |
download | puppet-shorewall-1817ee8063a1552c7594c683d9aea5c97ab345c4.tar.gz puppet-shorewall-1817ee8063a1552c7594c683d9aea5c97ab345c4.tar.bz2 |
do it as a define so we can easily pass multiple target zones
Diffstat (limited to 'manifests/rules/out/ekeyd.pp')
-rw-r--r-- | manifests/rules/out/ekeyd.pp | 7 |
1 files changed, 3 insertions, 4 deletions
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'; } } - |