summaryrefslogtreecommitdiff
path: root/manifests/rule_section.pp
diff options
context:
space:
mode:
authorduritong <peter.meier+github@immerda.ch>2016-08-03 00:55:47 +0200
committerGitHub <noreply@github.com>2016-08-03 00:55:47 +0200
commit6d78d6c7b5c7617077260c94d7158b61f430494e (patch)
tree05a44f1ae387a2cdee74a11d91af1b4826597292 /manifests/rule_section.pp
parenteaba8159fcfc38dbc72e2476e753b05ea7554d55 (diff)
parent3b623df1f88adf2a177829dacae822dec2c3c7d0 (diff)
Merge pull request #5 from abraham1901/master
* Add shorewall-blrules support
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}",
}
}