summaryrefslogtreecommitdiff
path: root/manifests/tunnel.pp
blob: 0e645c8228c587df72ff31e735e8d10d97bb2a19 (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 { "tunnels-${order}-${name}":
        line => "# ${name}\n${tunnel_type} ${zone} ${gateway} ${gateway_zones}",
    }
}