diff options
author | mh <mh@immerda.ch> | 2016-05-28 10:45:46 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2016-05-28 10:45:46 +0200 |
commit | c02b8c963d16c3f56b571a273623feab629cf752 (patch) | |
tree | bf5f855668a3bf4372a590f44c0e30a7481e38f0 /manifests | |
parent | 6bca4007a104cc7f1736613679b171f19a706685 (diff) |
the section requires a ? since EL6
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/rule_section.pp | 14 |
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}", + } } |