diff options
author | Micah Anderson <micah@riseup.net> | 2013-06-14 13:52:52 -0400 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2013-06-14 13:52:52 -0400 |
commit | 3749a297cd979dc234194d1887e3b46a789b3b1a (patch) | |
tree | 280b09cbadeb2fe2de163112bc2f64d1fce651d0 /manifests/centos.pp | |
parent | dd8491acea7fdd2324ec6db853ff0fd438d9b54a (diff) | |
parent | 06c5058752f7c1856380766784f48e077c3194ed (diff) |
Merge branch 'master' into leap
Conflicts:
manifests/base.pp
Diffstat (limited to 'manifests/centos.pp')
-rw-r--r-- | manifests/centos.pp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/manifests/centos.pp b/manifests/centos.pp index 7968b69..f671bc9 100644 --- a/manifests/centos.pp +++ b/manifests/centos.pp @@ -1,12 +1,13 @@ +# things needed on centos class shorewall::centos inherits shorewall::base { - if $::lsbmajdistrelease == '6' { - # workaround for - # http://comments.gmane.org/gmane.comp.security.shorewall/26991 - file{'/etc/shorewall/params': - ensure => link, - target => '/etc/shorewall/puppet/params', - before => Service['shorewall'], - require => File['/etc/shorewall/puppet'] + if $::lsbmajdistrelease > 5 { + augeas{'enable_shorewall': + context => '/files/etc/sysconfig/shorewall', + changes => 'set startup 1', + lens => 'Shellvars.lns', + incl => '/etc/sysconfig/shorewall', + require => Package['shorewall'], + notify => Service['shorewall'], } } } |