aboutsummaryrefslogtreecommitdiff
path: root/manifests/zone.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/zone.pp')
-rw-r--r--manifests/zone.pp14
1 files changed, 14 insertions, 0 deletions
diff --git a/manifests/zone.pp b/manifests/zone.pp
new file mode 100644
index 0000000..fa83b0b
--- /dev/null
+++ b/manifests/zone.pp
@@ -0,0 +1,14 @@
+define shorewall::zone(
+ $type,
+ $options = '-',
+ $in = '-',
+ $out = '-',
+ $parent = '-',
+ $order = 100
+){
+ $real_name = $parent ? { '-' => $name, default => "${name}:${parent}" }
+ shorewall::entry { "zones.d/${order}-${name}":
+ line => "${real_name} ${type} ${options} ${in} ${out}"
+ }
+}
+