summaryrefslogtreecommitdiff
path: root/manifests/interface.pp
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2010-12-16 14:52:03 +0100
committerintrigeri <intrigeri@boum.org>2010-12-16 16:01:19 +0100
commita33e9330c98c5e26e4340ee506d2ea05fd29ebbd (patch)
treee19252e322b90c6dde12e017ad7c4501486910c5 /manifests/interface.pp
parent34c964b19095399cfedc6bae326dcbbf3de6ce05 (diff)
New add_options parameter to shorewall::interface.
Diffstat (limited to 'manifests/interface.pp')
-rw-r--r--manifests/interface.pp11
1 files changed, 9 insertions, 2 deletions
diff --git a/manifests/interface.pp b/manifests/interface.pp
index 56b6db4..0b61950 100644
--- a/manifests/interface.pp
+++ b/manifests/interface.pp
@@ -2,15 +2,22 @@ define shorewall::interface(
$zone,
$broadcast = 'detect',
$options = 'tcpflags,blacklist,routefilter,nosmurfs,logmartians',
+ $add_options = '',
$rfc1918 = false,
$dhcp = false,
$order = 100
){
+ if $add_options == '' {
+ $added_options = ''
+ } else {
+ $added_options = ",${add_options}"
+ }
+
if $rfc1918 {
if $dhcp {
$options_real = "${options},dhcp"
} else {
- $options_real = $options
+ $options_real = "$options"
}
} else {
if $dhcp {
@@ -21,7 +28,7 @@ define shorewall::interface(
}
shorewall::entry { "interfaces.d/${order}-${title}":
- line => "${zone} ${name} ${broadcast} ${options_real}",
+ line => "${zone} ${name} ${broadcast} ${options_real}${added_options}",
}
}