summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2011-03-02 00:56:36 +0100
committermh <mh@immerda.ch>2011-03-02 00:56:36 +0100
commite732ebc597c6ea2b95b84445a1866793d9b90d0d (patch)
tree162d7cdee4f50b8759b6f5a58dc346704ad37904
parente429b600b98c30675717303229ada47e390fbf84 (diff)
do it as a define so we can easily pass multiple target zones
-rw-r--r--manifests/rules/out/ekeyd.pp7
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';
}
}
-