diff options
author | mh <mh@immerda.ch> | 2017-01-13 16:42:22 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2017-01-13 16:42:22 +0100 |
commit | b8514959659822868ec1a6b3922854497256338a (patch) | |
tree | 36a3fa33488548241bfdc7da239e1d806da0c262 /manifests | |
parent | 4557aa6dff84fe6189a1ea7af39bbc63c2c00628 (diff) |
also support the older versions
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/rule_section.pp | 8 |
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}": |