diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2016-03-23 20:01:11 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2016-03-23 20:01:11 -0300 |
commit | dffe0d74eadc7c25ab9ee513cb3a6b345dfa7644 (patch) | |
tree | 53e848d9d576687ec2c032564b6c42ba21b678f1 /manifests/centos.pp | |
parent | 589f5723d500ad7325e19dfeb1d3b8450044acf1 (diff) | |
parent | edd5db0159d5075609c545fb3ee10727a1cf5271 (diff) | |
download | puppet-shorewall-dffe0d74eadc7c25ab9ee513cb3a6b345dfa7644.tar.gz puppet-shorewall-dffe0d74eadc7c25ab9ee513cb3a6b345dfa7644.tar.bz2 |
Conflicts:
manifests/tunnel.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..1f8b37d 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 versioncmp($::operatingsystemmajrelease,'5') > 0 { + augeas{'enable_shorewall': + context => '/files/etc/sysconfig/shorewall', + changes => 'set startup 1', + lens => 'Shellvars.lns', + incl => '/etc/sysconfig/shorewall', + require => Package['shorewall'], + notify => Exec['shorewall_check'], } } } |