summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/rule_section.pp8
1 files changed, 5 insertions, 3 deletions
diff --git a/manifests/rule_section.pp b/manifests/rule_section.pp
index 08e5708..9315046 100644
--- a/manifests/rule_section.pp
+++ b/manifests/rule_section.pp
@@ -1,9 +1,11 @@
# a rule section marker
define shorewall::rule_section(
- $order
+ $order,
){
- $rule_section_prefix = $shorewall_major_version ? {
- '5' => '?'
+ if versioncmp($shorewall_major_version,'5') < 0 {
+ $rule_section_prefix = '?'
+ } else {
+ $rule_section_prefix = ''
}
shorewall::entry{"rules-${order}-${name}":