summaryrefslogtreecommitdiff
path: root/manifests/rule_section.pp
diff options
context:
space:
mode:
authorLebedev Vadim <abraham1901@gmail.com>2016-06-29 18:52:16 +0300
committerLebedev Vadim <abraham1901@gmail.com>2016-06-29 18:52:16 +0300
commit10576074788edae1c77b0b9c51949bee5a25f1d6 (patch)
tree0d267489d9be0aaeeb7dc89c077fe0286a6ec677 /manifests/rule_section.pp
parentef445bc9b9482f5e6efa7f18fdc79efc60fccb5c (diff)
* fix rule section
Diffstat (limited to 'manifests/rule_section.pp')
-rw-r--r--manifests/rule_section.pp6
1 files changed, 5 insertions, 1 deletions
diff --git a/manifests/rule_section.pp b/manifests/rule_section.pp
index 82984ca..3f2ecc5 100644
--- a/manifests/rule_section.pp
+++ b/manifests/rule_section.pp
@@ -1,7 +1,11 @@
define shorewall::rule_section(
$order
){
+ $rule_section_prefix = $shorewall_major_version ? {
+ '5' => '?'
+ }
+
shorewall::entry{"rules-${order}-${name}":
- line => "SECTION ${name}",
+ line => "${rule_section_prefix}SECTION ${name}",
}
}