diff options
author | Marknl <mark@e-rave.nl> | 2017-01-11 22:52:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-11 22:52:36 +0100 |
commit | a7b138d73ea419afa82c83d1b4d607a5a5d5ddee (patch) | |
tree | ffb0af44d2315974c256308c2a5e006413cb3f77 /manifests | |
parent | 32c97619505a28d6f9838d9ebc109f472687fe4f (diff) |
Brought $name back into the game for backw. compat
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/host.pp | 10 |
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}" } } - |