diff options
author | duritong <peter.meier+github@immerda.ch> | 2017-01-12 15:43:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-12 15:43:20 +0100 |
commit | 24076ddaa5c802b503e59e279750ab5d6353815d (patch) | |
tree | b49657f4db0a526c61b2ec7bdcf20185dcfaf037 | |
parent | 9d36decac41bf6cda6f09adfce76e6ef9138205f (diff) | |
parent | c868850e3161c69d01b7caf05192d625fc1df0c1 (diff) |
Merge pull request #15 from marknl/patch-2
Added $host option
-rw-r--r-- | manifests/host.pp | 7 |
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}" } } - |