summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorduritong <peter.meier+github@immerda.ch>2014-02-17 21:28:59 +0100
committerduritong <peter.meier+github@immerda.ch>2014-02-17 21:28:59 +0100
commitb1c1bb77b42b57679101c3855265b9afcd3e6d80 (patch)
tree7a4d61b1ac0aeee409cc480e6ce35d7a9fc731ae
parent9de938880129bc8d8985debdf09336d63787f8ae (diff)
parent47c5d323099b341a785b44f9d05ff0b535ce12e6 (diff)
Merge pull request #32 from 2ndquadrant-it/plugin-deploy
Plugin deploy
-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
+ }
}
}