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