CentOS 5 does not yet have a munin policy
authormh <mh@immerda.ch>
Sat, 25 Feb 2012 12:54:48 +0000 (13:54 +0100)
committermh <mh@immerda.ch>
Sat, 25 Feb 2012 12:54:48 +0000 (13:54 +0100)
manifests/plugin.pp
manifests/plugin/deploy.pp

index c1f488b..9f799aa 100644 (file)
@@ -35,7 +35,7 @@ define munin::plugin (
                 require => $real_require,
                 notify => Service['munin-node'];
             }
-            if $::selinux == 'true' {
+            if ($::selinux == 'true') and (($::operatingsystem != 'CentOS') or ($::operatingsystem == 'CentOS' and $::lsbmajdistrelease != '5')){
               File[$plugin]{
                 seltype => 'munin_etc_t',
               }
index 86ca7f5..094b490 100644 (file)
@@ -16,7 +16,7 @@ define munin::plugin::deploy($source = '', $ensure = 'present', $config = '') {
     }
 
 
-    if $::selinux == 'true' {
+    if ($::selinux == 'true') and (($::operatingsystem != 'CentOS') or ($::operatingsystem == 'CentOS' and $::lsbmajdistrelease != '5')){
       File["munin_plugin_${name}"]{
         seltype =>  'munin_exec_t',
       }