summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorandreas <andreas@immerda.ch>2008-02-08 10:20:38 +0000
committerandreas <andreas@immerda.ch>2008-02-08 10:20:38 +0000
commitf2d6994a63d6ad1fcbd9e18dd32423e34e9e1a3d (patch)
tree1754db0b3f521ea639e7df3614a78f185eac15ca /manifests
parent047a55a85be261881b7709fe243633ac533f43d8 (diff)
pfad nicht richtig def
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 {