summaryrefslogtreecommitdiff
path: root/manifests/tunnel.pp
blob: 2cac9227a9fa6717d83468cd96b758a86a6de3f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
define shorewall::tunnel(
    $tunnel_type,
    $zone,
    $gateway = '0.0.0.0/0',
    $gateway_zones = '',
    $order = '1'
) {
    shorewall::entry { "tunnel-${order}-${name}":
        line => "# ${name}\n${tunnel_type} ${zone} ${gateway} ${gateway_zones}",
    }
}