script path
authorandreas <andreas@immerda.ch>
Fri, 1 Feb 2008 15:35:18 +0000 (15:35 +0000)
committerandreas <andreas@immerda.ch>
Fri, 1 Feb 2008 15:35:18 +0000 (15:35 +0000)
manifests/plugin.pp

index 0d11c01..2b12896 100644 (file)
@@ -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"