diff options
Diffstat (limited to 'manifests/zone.pp')
-rw-r--r-- | manifests/zone.pp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/manifests/zone.pp b/manifests/zone.pp new file mode 100644 index 0000000..aeab972 --- /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}-${title}": + line => "${real_name} ${type} ${options} ${in} ${out}" + } +} + |