summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2017-01-13 16:42:22 +0100
committermh <mh@immerda.ch>2017-01-13 16:42:22 +0100
commitb8514959659822868ec1a6b3922854497256338a (patch)
tree36a3fa33488548241bfdc7da239e1d806da0c262 /manifests
parent4557aa6dff84fe6189a1ea7af39bbc63c2c00628 (diff)
also support the older versions
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}":