summaryrefslogtreecommitdiff
path: root/manifests/plugin/deploy.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2013-02-28 20:24:02 +0100
committermh <mh@immerda.ch>2013-02-28 20:24:02 +0100
commit77e0a70999a8c4c20ee8d9eb521b927c525ac653 (patch)
treed6394efc3463a7162a2271c12c0dd0e1f2e5e630 /manifests/plugin/deploy.pp
parentf047c5c38310c25a4f5483cd33caba6d73a42ab0 (diff)
make it possible to manage the seltype
Diffstat (limited to 'manifests/plugin/deploy.pp')
-rw-r--r--manifests/plugin/deploy.pp9
1 files changed, 5 insertions, 4 deletions
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,
}
}