summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authoram <am@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>2008-02-08 10:20:38 +0000
committeram <am@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>2008-02-08 10:20:38 +0000
commit8f58fe2d444587451c0e042574f2931a4162ee08 (patch)
tree1754db0b3f521ea639e7df3614a78f185eac15ca /manifests
parentf0b680075d3106efc0a04c8fd3a5d5f05dbe82e6 (diff)
pfad nicht richtig def
git-svn-id: https://svn/ipuppet/trunk/modules/munin@776 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
Diffstat (limited to 'manifests')
-rw-r--r--manifests/plugin.pp17
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 {