]> gitweb.fluxo.info Git - puppet-shorewall.git/commitdiff
use the centos class on centos based systems
authormh <mh@immerda.ch>
Thu, 28 Feb 2013 18:45:41 +0000 (19:45 +0100)
committermh <mh@immerda.ch>
Sat, 5 Dec 2015 10:30:41 +0000 (11:30 +0100)
manifests/centos.pp

index b7fc24a0f07c6efef834eee647db06537cfbd5b8..95b7759306c840fe87c5e3bf9b0b930259a9e8bd 100644 (file)
@@ -1,6 +1,6 @@
 # things needed on centos
 class shorewall::centos inherits shorewall::base {
-  if $::operatingsystemmajrelease == '6' {
+  if versioncmp($::operatingsystemmajrelease,'5') > 0 {
     augeas{'enable_shorewall':
       context => '/files/etc/sysconfig/shorewall',
       changes => 'set startup 1',