summaryrefslogtreecommitdiff
path: root/manifests/plugin
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2012-02-15 18:17:14 +0100
committermh <mh@immerda.ch>2012-02-15 18:17:14 +0100
commitd459255da087bda68627dc5c228056b6ebf7036b (patch)
tree9235ff7627fafadc9515ecbffe42ff038adfcc8c /manifests/plugin
parentd8de9540534a3801c87278435934da3c88a69e4b (diff)
manage selinux if enabled of plugins we manage
Diffstat (limited to 'manifests/plugin')
-rw-r--r--manifests/plugin/deploy.pp9
1 files changed, 8 insertions, 1 deletions
diff --git a/manifests/plugin/deploy.pp b/manifests/plugin/deploy.pp
index 67cbfb8..be7748b 100644
--- a/manifests/plugin/deploy.pp
+++ b/manifests/plugin/deploy.pp
@@ -15,7 +15,14 @@ define munin::plugin::deploy($source = '', $ensure = 'present', $config = '') {
mode => 0755, owner => root, group => 0;
}
- case $kernel {
+
+ if $::selinux == 'true' {
+ File["munin_plugin_${name}"]{
+ setype => 'munin_services_plugin_exec_t',
+ }
+ }
+
+ case $::kernel {
openbsd: { $basic_require = File['/var/run/munin'] }
default: { $basic_require = Package['munin-node'] }
}