diff options
author | mh <mh@immerda.ch> | 2017-04-25 15:16:08 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2017-04-25 15:16:08 +0200 |
commit | 591b48169ba18c8f9d8337aa2626d716e6866476 (patch) | |
tree | 8a880368b2630d9cc5c31f1b686ffcee36fc632d | |
parent | e2f07459474470aeea73e6160ecf2652bc9ae6bf (diff) |
enable shorewall6 rules by default
-rw-r--r-- | manifests/rule.pp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/manifests/rule.pp b/manifests/rule.pp index 39f0ef9..12c4858 100644 --- a/manifests/rule.pp +++ b/manifests/rule.pp @@ -18,7 +18,7 @@ define shorewall::rule( $helper = '-', $order = '500', $shorewall = true, - $shorewall6 = false, + $shorewall6 = true, $ensure = 'present', ){ if versioncmp($shorewall_version,'4.5.7') >= 0 { @@ -30,10 +30,11 @@ define shorewall::rule( # el5 $line = '' } + $with_shorewall6 = $shorewall6 and $shorewall::with_shorewall6 shorewall::entry{"rules-${order}-${name}": ensure => $ensure, line => "# ${name}\n${action} ${source} ${destination} ${proto} ${destinationport} ${sourceport} ${originaldest} ${ratelimit} ${user} ${mark}${line}", shorewall => $shorewall, - shorewall6 => $shorewall6, + shorewall6 => $with_shorewall6, } } |