summaryrefslogtreecommitdiff
path: root/manifests/zone.pp
blob: fa83b0b6558813d27f0b7e09f83d66d367304c00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
define shorewall::zone(
    $type,
    $options = '-',
    $in = '-',
    $out = '-',
    $parent = '-',
    $order = 100
){
    $real_name = $parent ? { '-' => $name, default => "${name}:${parent}" }
    shorewall::entry { "zones.d/${order}-${name}":
        line => "${real_name} ${type} ${options} ${in} ${out}"
    }
}