summaryrefslogtreecommitdiff
path: root/manifests/params.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/params.pp')
-rw-r--r--manifests/params.pp22
1 files changed, 18 insertions, 4 deletions
diff --git a/manifests/params.pp b/manifests/params.pp
index 3bc5663..49ced31 100644
--- a/manifests/params.pp
+++ b/manifests/params.pp
@@ -1,5 +1,19 @@
-define shorewall::params($value, $order='100'){
- shorewall::entry{"params-${order}-${name}":
- line => "${name}=${value}",
- }
+# manage a shorewall param, will be used for both
+# ipv4 and ipv6 if not specified differently using
+# shorewall or shorwall6 booleans.
+# http://www.shorewall.net/manpages/shorewall-params.html
+# http://www.shorewall.net/manpages6/shorewall6-params.html
+define shorewall::params(
+ $value,
+ $key = $name,
+ $order ='100',
+ $shorewall = true,
+ $shorewall6 = true,
+){
+ $with_shorewall6 = $shorewall6 and $shorewall::with_shorewall6
+ shorewall::entry{"params-${order}-${name}":
+ line => "${key}=${value}",
+ shorewall => $shorewall,
+ shorewall6 => $with_shorewall6,
+ }
}