diff options
author | andreas <andreas@immerda.ch> | 2008-02-01 15:35:18 +0000 |
---|---|---|
committer | andreas <andreas@immerda.ch> | 2008-02-01 15:35:18 +0000 |
commit | d4448bd2b5ed8fdc0a967ace62c83f07210007ff (patch) | |
tree | 36a3cc9097261661fa3dea9d15262a4f429f384f /manifests | |
parent | 3d6ecf7a34a91b6149710bf4eadcf06834cc2ed3 (diff) |
script path
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/plugin.pp | 4 |
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" |