diff options
author | am <am@d66ca3ae-40d7-4aa7-90d4-87d79ca94279> | 2008-02-08 10:20:38 +0000 |
---|---|---|
committer | am <am@d66ca3ae-40d7-4aa7-90d4-87d79ca94279> | 2008-02-08 10:20:38 +0000 |
commit | 07ae196caadb77245cfa5b7298d991212b7ded07 (patch) | |
tree | 1754db0b3f521ea639e7df3614a78f185eac15ca | |
parent | 47dc70484afec3c95ba38a3635b2dc455972755e (diff) |
pfad nicht richtig def
git-svn-id: https://rfd.cronopios.org/ipuppet/trunk/modules/munin@776 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
-rw-r--r-- | manifests/plugin.pp | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/manifests/plugin.pp b/manifests/plugin.pp index 97c89b2..0363317 100644 --- a/manifests/plugin.pp +++ b/manifests/plugin.pp @@ -2,11 +2,7 @@ # Copyright (C) 2007 David Schmitt <david@schmitt.edv-bus.at> # See LICENSE for the full license granted to you. -define munin::plugin ( - $ensure = "present", - $script_path_in = '', - $config = '') -{ +class munin::plugin::scriptpaths { case $operatingsystem { gentoo: { $script_path = "/usr/libexec/munin/plugins" @@ -21,7 +17,16 @@ define munin::plugin ( $script_path = "/usr/share/munin/plugins" } } +} + +define munin::plugin ( + $ensure = "present", + $script_path_in = '', + $config = '') +{ + + include munin::plugin::scriptpaths #$script_path = $script_path_in ? { '' => $script_path, default => $script_path_in } $plugin_src = $ensure ? { "present" => $name, default => $ensure } @@ -94,6 +99,8 @@ define munin::remoteplugin($ensure = "present", $source, $config = '') { } class munin::plugins::base { + include munin::plugin::scriptpaths + case $operatingsystem { centos: { file { |