summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp22
1 files changed, 11 insertions, 11 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index cf7d5b8..61187f0 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -57,17 +57,6 @@ class shorewall(
$daily_check = true,
) {
- $disable_ipv6 = $ipaddress6 ? {
- undef => 'Yes',
- default => 'No',
- }
- $def_settings = {
- 'LOG_MARTIANS' => 'No',
- 'DISABLE_IPV6' => $disable_ipv6,
- }
-
- $merged_settings = merge($def_settings,$settings)
-
# workaround https://tickets.puppetlabs.com/browse/FACT-1739
if $shorewall6 == 'auto' {
if $ipaddress6 and $ipaddress6 =~ /:/ {
@@ -79,6 +68,17 @@ class shorewall(
$with_shorewall6 = str2bool($shorewall6)
}
+ $disable_ipv6 = $with_shorewall6 ? {
+ false => 'Yes',
+ default => 'No',
+ }
+ $def_settings = {
+ 'LOG_MARTIANS' => 'No',
+ 'DISABLE_IPV6' => $disable_ipv6,
+ }
+
+ $merged_settings = merge($def_settings,$settings)
+
case $::operatingsystem {
'Gentoo': { include ::shorewall::gentoo }
'Debian','Ubuntu': { include ::shorewall::debian }