summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorduritong <peter.meier+github@immerda.ch>2017-01-12 15:43:20 +0100
committerGitHub <noreply@github.com>2017-01-12 15:43:20 +0100
commit24076ddaa5c802b503e59e279750ab5d6353815d (patch)
treeb49657f4db0a526c61b2ec7bdcf20185dcfaf037
parent9d36decac41bf6cda6f09adfce76e6ef9138205f (diff)
parentc868850e3161c69d01b7caf05192d625fc1df0c1 (diff)
Merge pull request #15 from marknl/patch-2
Added $host option
-rw-r--r--manifests/host.pp7
1 files changed, 4 insertions, 3 deletions
diff --git a/manifests/host.pp b/manifests/host.pp
index f400223..d2a73ce 100644
--- a/manifests/host.pp
+++ b/manifests/host.pp
@@ -1,10 +1,11 @@
define shorewall::host(
$zone,
+ $host = $name,
$options = 'tcpflags,blacklist,norfc1918',
- $order='100'
+ $order ='100'
){
+
shorewall::entry{"hosts-${order}-${name}":
- line => "${zone} ${name} ${options}"
+ line => "#${name}\n${zone} ${host} ${options}"
}
}
-