summaryrefslogtreecommitdiff
path: root/manifests/plugin
diff options
context:
space:
mode:
authorMarco Nenciarini <marco.nenciarini@2ndquadrant.it>2014-02-14 16:08:40 +0100
committerMarco Nenciarini <marco.nenciarini@2ndquadrant.it>2014-02-14 16:40:45 +0100
commit47c5d323099b341a785b44f9d05ff0b535ce12e6 (patch)
tree7a4d61b1ac0aeee409cc480e6ce35d7a9fc731ae /manifests/plugin
parent9de938880129bc8d8985debdf09336d63787f8ae (diff)
Allow to deploy a plugin without registering it
Diffstat (limited to 'manifests/plugin')
-rw-r--r--manifests/plugin/deploy.pp14
1 files changed, 9 insertions, 5 deletions
diff --git a/manifests/plugin/deploy.pp b/manifests/plugin/deploy.pp
index c514eed..2cee966 100644
--- a/manifests/plugin/deploy.pp
+++ b/manifests/plugin/deploy.pp
@@ -3,7 +3,8 @@ define munin::plugin::deploy(
$ensure = 'present',
$source = '',
$config = '',
- $seltype = 'munin_exec_t'
+ $seltype = 'munin_exec_t',
+ $register = true,
) {
$plugin_src = $ensure ? {
'present' => $name,
@@ -36,9 +37,12 @@ define munin::plugin::deploy(
File["munin_plugin_${name}"]{
require => $basic_require,
}
- # register the plugin
- munin::plugin{$name:
- ensure => $ensure,
- config => $config
+
+ # register the plugin if required
+ if ($register) {
+ munin::plugin{$name:
+ ensure => $ensure,
+ config => $config
+ }
}
}