summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarknl <mark@e-rave.nl>2017-01-12 13:17:21 +0100
committerGitHub <noreply@github.com>2017-01-12 13:17:21 +0100
commitc868850e3161c69d01b7caf05192d625fc1df0c1 (patch)
tree7e20fc999f39e7176d5ce26d036c5223cbd62018
parenta7b138d73ea419afa82c83d1b4d607a5a5d5ddee (diff)
Use $name for backwards compatibility
-rw-r--r--manifests/host.pp6
1 files changed, 1 insertions, 5 deletions
diff --git a/manifests/host.pp b/manifests/host.pp
index 1bd56cc..d2a73ce 100644
--- a/manifests/host.pp
+++ b/manifests/host.pp
@@ -1,13 +1,9 @@
define shorewall::host(
$zone,
- $host = undef,
+ $host = $name,
$options = 'tcpflags,blacklist,norfc1918',
$order ='100'
){
-
- unless $host == undef {
- $host = $name
- }
shorewall::entry{"hosts-${order}-${name}":
line => "#${name}\n${zone} ${host} ${options}"