diff options
author | kwadronaut <kwadronaut@leap.se> | 2018-11-09 10:03:32 +0100 |
---|---|---|
committer | kwadronaut <kwadronaut@leap.se> | 2018-11-09 10:03:32 +0100 |
commit | 74ebf6e34723573a23bf0e758978fb3969e362f8 (patch) | |
tree | 6abed2eb699e572c418d25d9969b2f4b083a83c0 /manifests/rule_section.pp | |
parent | 06e89ed3486916ae12186e46b8ec59c8c7c79142 (diff) | |
parent | cabbf434c1778cb4e8fe2f7f726a012f707cd2a5 (diff) |
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, + } } |