blob: 49ced318193c1e54c36841903eb52a146373d0af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# manage a shorewall param, will be used for both
# ipv4 and ipv6 if not specified differently using
# shorewall or shorwall6 booleans.
# http://www.shorewall.net/manpages/shorewall-params.html
# http://www.shorewall.net/manpages6/shorewall6-params.html
define shorewall::params(
$value,
$key = $name,
$order ='100',
$shorewall = true,
$shorewall6 = true,
){
$with_shorewall6 = $shorewall6 and $shorewall::with_shorewall6
shorewall::entry{"params-${order}-${name}":
line => "${key}=${value}",
shorewall => $shorewall,
shorewall6 => $with_shorewall6,
}
}
|