zone.pp 322 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
define shorewall::zone(
    $type,
    $options = '-',
    $in = '-',
    $out = '-',
    $parent = '-',
    $order = 100
){
    $real_name = $parent ? { '-' => $name, default => "${name}:${parent}" }
10
    shorewall::entry { "zones-${order}-${name}":
11 12 13 14
        line => "${real_name} ${type} ${options} ${in} ${out}"
    }
}