diff options
Diffstat (limited to 'manifests/rule_section.pp')
-rw-r--r-- | manifests/rule_section.pp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/manifests/rule_section.pp b/manifests/rule_section.pp index 82984ca..620af89 100644 --- a/manifests/rule_section.pp +++ b/manifests/rule_section.pp @@ -1,7 +1,16 @@ +# a rule section marker define shorewall::rule_section( - $order + $order, ){ - shorewall::entry{"rules-${order}-${name}": - line => "SECTION ${name}", - } + if versioncmp($shorewall_version,'4.6.0') > 0 { + $rule_section_prefix = '?' + } else { + $rule_section_prefix = '' + } + + shorewall::entry{"rules-${order}-${name}": + line => "${rule_section_prefix}SECTION ${name}", + shorewall => true, + shorewall6 => true, + } } |