summaryrefslogtreecommitdiff
path: root/manifests/zone.pp
blob: 81e57711a1edca0d5dab446a3047506dcd9dc43c (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-${order}-${name}":
        line => "${real_name} ${type} ${options} ${in} ${out}"
    }
}