diff options
author | mh <mh@immerda.ch> | 2012-02-25 13:54:48 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2012-02-25 13:54:48 +0100 |
commit | f2a0d2623b36e6105f31e51d99cbd349adaa30d7 (patch) | |
tree | 753d74d8dd3ad2e5ec0e83acb2c6f5f62ce1cb8b /manifests | |
parent | df6d136c29b035616ba5bbf5efd9b16f3a22338e (diff) |
CentOS 5 does not yet have a munin policy
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/plugin.pp | 2 | ||||
-rw-r--r-- | manifests/plugin/deploy.pp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/manifests/plugin.pp b/manifests/plugin.pp index c1f488b..9f799aa 100644 --- a/manifests/plugin.pp +++ b/manifests/plugin.pp @@ -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', } diff --git a/manifests/plugin/deploy.pp b/manifests/plugin/deploy.pp index 86ca7f5..094b490 100644 --- a/manifests/plugin/deploy.pp +++ b/manifests/plugin/deploy.pp @@ -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', } |