summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
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}"
}
}
-