summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorandreas <andreas@immerda.ch>2008-02-01 15:35:18 +0000
committerandreas <andreas@immerda.ch>2008-02-01 15:35:18 +0000
commitd4448bd2b5ed8fdc0a967ace62c83f07210007ff (patch)
tree36a3cc9097261661fa3dea9d15262a4f429f384f /manifests
parent3d6ecf7a34a91b6149710bf4eadcf06834cc2ed3 (diff)
script path
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"