diff options
author | Micah <micah@leap.se> | 2016-05-24 10:19:26 -0400 |
---|---|---|
committer | Micah <micah@leap.se> | 2016-05-24 10:19:26 -0400 |
commit | b0e1e4c82db3c70ddc67639a9b983de89b415477 (patch) | |
tree | ec1cfae175cc939dc5d2b5c99150480e31eae295 /manifests/zone.pp |
Squashed 'puppet/modules/shorewall/' content from commit 34fbca6
git-subtree-dir: puppet/modules/shorewall
git-subtree-split: 34fbca68d478c2edd5f13e74245cf675b5b53303
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 00000000..81e57711 --- /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-${order}-${name}": + line => "${real_name} ${type} ${options} ${in} ${out}" + } +} + |