summaryrefslogtreecommitdiff
path: root/manifests/host.pp
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2017-02-01 21:27:04 -0500
committerMicah Anderson <micah@riseup.net>2017-02-01 21:27:04 -0500
commitb140aabf7c4e0a0ded0a69368c4fce354c1f96e8 (patch)
treee82163207cb81a4215508e6c90229c0245609ab0 /manifests/host.pp
parent2b75a0321bc9e65f4e9e6cf34b708a3d40318731 (diff)
parent85b6e3820fa614eeafb99b85846172553461398e (diff)
Merge remote-tracking branch 'immerda/master' into riseup
Diffstat (limited to 'manifests/host.pp')
-rw-r--r--manifests/host.pp7
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}"
}
}
-