summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2016-05-28 10:45:46 +0200
committermh <mh@immerda.ch>2016-05-28 10:45:46 +0200
commitc02b8c963d16c3f56b571a273623feab629cf752 (patch)
treebf5f855668a3bf4372a590f44c0e30a7481e38f0 /manifests
parent6bca4007a104cc7f1736613679b171f19a706685 (diff)
the section requires a ? since EL6
Diffstat (limited to 'manifests')
-rw-r--r--manifests/rule_section.pp14
1 files changed, 10 insertions, 4 deletions
diff --git a/manifests/rule_section.pp b/manifests/rule_section.pp
index 82984ca..d853f70 100644
--- a/manifests/rule_section.pp
+++ b/manifests/rule_section.pp
@@ -1,7 +1,13 @@
+# a rule section marker
define shorewall::rule_section(
- $order
+ $order
){
- shorewall::entry{"rules-${order}-${name}":
- line => "SECTION ${name}",
- }
+ if $::operatingsystem == 'CentOS' and versioncmp($::operatingsystemmajrelease,'6') > 0 {
+ $prefix = '?SECTION'
+ } else {
+ $prefix = 'SECTION'
+ }
+ shorewall::entry{"rules-${order}-${name}":
+ line => "${prefix} ${name}",
+ }
}