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