summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorMarknl <mark@e-rave.nl>2017-01-11 22:52:36 +0100
committerGitHub <noreply@github.com>2017-01-11 22:52:36 +0100
commita7b138d73ea419afa82c83d1b4d607a5a5d5ddee (patch)
treeffb0af44d2315974c256308c2a5e006413cb3f77 /manifests
parent32c97619505a28d6f9838d9ebc109f472687fe4f (diff)
Brought $name back into the game for backw. compat
Diffstat (limited to 'manifests')
-rw-r--r--manifests/host.pp10
1 files changed, 7 insertions, 3 deletions
diff --git a/manifests/host.pp b/manifests/host.pp
index 2510ca7..1bd56cc 100644
--- a/manifests/host.pp
+++ b/manifests/host.pp
@@ -1,11 +1,15 @@
define shorewall::host(
$zone,
- $host,
+ $host = undef,
$options = 'tcpflags,blacklist,norfc1918',
- $order='100'
+ $order ='100'
){
+
+ unless $host == undef {
+ $host = $name
+ }
+
shorewall::entry{"hosts-${order}-${name}":
line => "#${name}\n${zone} ${host} ${options}"
}
}
-