From 07ae196caadb77245cfa5b7298d991212b7ded07 Mon Sep 17 00:00:00 2001
From: am <am@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>
Date: Fri, 8 Feb 2008 10:20:38 +0000
Subject: pfad nicht richtig def

git-svn-id: https://rfd.cronopios.org/ipuppet/trunk/modules/munin@776 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
---
 manifests/plugin.pp | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

(limited to 'manifests')

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 {
-- 
cgit v1.2.3