From 77e0a70999a8c4c20ee8d9eb521b927c525ac653 Mon Sep 17 00:00:00 2001 From: mh Date: Thu, 28 Feb 2013 20:24:02 +0100 Subject: make it possible to manage the seltype --- manifests/plugin/deploy.pp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'manifests/plugin') diff --git a/manifests/plugin/deploy.pp b/manifests/plugin/deploy.pp index 53f6481..cbf64fb 100644 --- a/manifests/plugin/deploy.pp +++ b/manifests/plugin/deploy.pp @@ -1,8 +1,9 @@ # deploy and register a munin plugin define munin::plugin::deploy( - $ensure = 'present', - $source = '', - $config = '' + $ensure = 'present', + $source = '', + $config = '', + $seltype = 'munin_exec_t' ) { $plugin_src = $ensure ? { 'present' => $name, @@ -24,7 +25,7 @@ define munin::plugin::deploy( if ($::selinux == 'true') and (($::operatingsystem != 'CentOS') or ($::operatingsystem == 'CentOS' and $::lsbmajdistrelease != '5')){ File["munin_plugin_${name}"]{ - seltype => 'munin_exec_t', + seltype => $seltype, } } -- cgit v1.2.3