aboutsummaryrefslogtreecommitdiff
path: root/manifests/tunnel.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2013-01-02 19:15:34 +0100
committermh <mh@immerda.ch>2013-01-02 19:15:34 +0100
commit2f388687ea30fdefdcd405807a0fce699807809d (patch)
tree5d0449c901db61f753b6aa30b7c1d29fe0a0070b /manifests/tunnel.pp
parent5e555243c8dd93f7e5cfadacc9c3843d5f9d421c (diff)
parentc566c907a31b8142b2f2570210b9547c22af5326 (diff)
downloadpuppet-shorewall-2f388687ea30fdefdcd405807a0fce699807809d.tar.gz
puppet-shorewall-2f388687ea30fdefdcd405807a0fce699807809d.tar.bz2
Merge remote-tracking branch 'sarava/master'
Conflicts: manifests/base.pp manifests/init.pp
Diffstat (limited to 'manifests/tunnel.pp')
-rw-r--r--manifests/tunnel.pp11
1 files changed, 11 insertions, 0 deletions
diff --git a/manifests/tunnel.pp b/manifests/tunnel.pp
new file mode 100644
index 0000000..e0c71e7
--- /dev/null
+++ b/manifests/tunnel.pp
@@ -0,0 +1,11 @@
+define shorewall::tunnel(
+ $tunnel_type,
+ $zone,
+ $gateway = '0.0.0.0/0',
+ $gateway_zones = '',
+ $order = '1'
+) {
+ shorewall::entry { "tunnel.d/${order}-${title}":
+ line => "# ${name}\n${tunnel_type} ${zone} ${gateway} ${gateway_zones}",
+ }
+}