summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authoram <am@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>2008-02-01 15:35:18 +0000
committeram <am@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>2008-02-01 15:35:18 +0000
commit6661f91c54049defe2aa8f4d587d34d7e7b15dee (patch)
tree36a3cc9097261661fa3dea9d15262a4f429f384f /manifests
parentf866b953289eab2b50cba45411ced3b25820884c (diff)
script path
git-svn-id: https://svn/ipuppet/trunk/modules/munin@687 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
Diffstat (limited to 'manifests')
-rw-r--r--manifests/plugin.pp4
1 files changed, 3 insertions, 1 deletions
diff --git a/manifests/plugin.pp b/manifests/plugin.pp
index 0d11c01..2b12896 100644
--- a/manifests/plugin.pp
+++ b/manifests/plugin.pp
@@ -31,11 +31,13 @@ class munin::plugin::paths
define munin::plugin (
$ensure = "present",
- $script_path = '/usr/libexec/munin/plugins',
+ $script_path_in = '',
$config = '')
{
include munin::plugin::paths
+ $script_path = $script_path_in ? { '' => $script_path, default => $script_path_in }
+
$plugin_src = $ensure ? { "present" => $name, default => $ensure }
debug ( "munin_plugin: name=$name, ensure=$ensure, script_path=$script_path" )
$plugin = "/etc/munin/plugins/$name"