diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-09-13 22:16:00 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-09-13 22:16:00 -0300 |
commit | fc200fa2135f7bbc86564f17f476df6257affcf0 (patch) | |
tree | 38880c121c0e81d37cb84cfea5215f956bf1767e /manifests/tunnel.pp | |
parent | 236336c6755c569ff43589b1256f177f11cfb1a0 (diff) | |
download | puppet-shorewall-fc200fa2135f7bbc86564f17f476df6257affcf0.tar.gz puppet-shorewall-fc200fa2135f7bbc86564f17f476df6257affcf0.tar.bz2 |
Adding shorewall::tunnel
Diffstat (limited to 'manifests/tunnel.pp')
-rw-r--r-- | manifests/tunnel.pp | 11 |
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}", + } +} |