summaryrefslogtreecommitdiff
path: root/manifests/rule_section.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/rule_section.pp')
-rw-r--r--manifests/rule_section.pp9
1 files changed, 4 insertions, 5 deletions
diff --git a/manifests/rule_section.pp b/manifests/rule_section.pp
index d853f70..08e5708 100644
--- a/manifests/rule_section.pp
+++ b/manifests/rule_section.pp
@@ -2,12 +2,11 @@
define shorewall::rule_section(
$order
){
- if $::operatingsystem == 'CentOS' and versioncmp($::operatingsystemmajrelease,'6') > 0 {
- $prefix = '?SECTION'
- } else {
- $prefix = 'SECTION'
+ $rule_section_prefix = $shorewall_major_version ? {
+ '5' => '?'
}
+
shorewall::entry{"rules-${order}-${name}":
- line => "${prefix} ${name}",
+ line => "${rule_section_prefix}SECTION ${name}",
}
}