summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp10
1 files changed, 10 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 93f71f7..7f9676d 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -68,6 +68,16 @@ class shorewall(
$merged_settings = merge($def_settings,$settings)
+ # workaround https://tickets.puppetlabs.com/browse/FACT-1739
+ if $shorewall6 == 'auto' {
+ if $ipaddress6 and $ipaddress6 =~ /:/ {
+ $with_shorewall6 = true
+ } else {
+ $with_shorewall6 = false
+ }
+ } else {
+ $with_shorewall6 = str2bool($shorewall6)
+ }
$with_shorewall6 = $shorewall6 ? {
'auto' => $ipaddress6 ? {
undef => false,