summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>2008-02-08 11:26:08 +0000
committermh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>2008-02-08 11:26:08 +0000
commit9b983369ce90029a31a06f82b1ec59569ff66bd5 (patch)
treed37f5582f2a45d8eba45a24f550aecfc608b072d /manifests
parent1159cbfcb43ef81a72d7c029e8b25b75cfea4c1b (diff)
new try
git-svn-id: https://svn/ipuppet/trunk/modules/munin@785 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
Diffstat (limited to 'manifests')
-rw-r--r--manifests/plugin.pp11
1 files changed, 4 insertions, 7 deletions
diff --git a/manifests/plugin.pp b/manifests/plugin.pp
index ced6795..5e0db81 100644
--- a/manifests/plugin.pp
+++ b/manifests/plugin.pp
@@ -26,11 +26,10 @@ define munin::plugin (
$config = '')
{
- include munin::plugin::scriptpaths
- $real_script_path = $script_path_in ? { '' => ${munin::plugin::scriptpaths::script_path}, default => $script_path_in }
+ $real_script_path = $script_path_in ? { '' => $munin::plugin::scriptpaths::script_path, default => $script_path_in }
$plugin_src = $ensure ? { "present" => $name, default => $ensure }
- debug ( "munin_plugin: name=$name, ensure=$ensure, script_path=${munin::plugin::scriptpaths::script_path}" )
+ debug ( "munin_plugin: name=$name, ensure=$ensure, script_path=$munin::plugin::scriptpaths::script_path" )
$plugin = "/etc/munin/plugins/$name"
$plugin_conf = "/etc/munin/plugin-conf.d/$name.conf"
case $ensure {
@@ -89,8 +88,6 @@ define munin::remoteplugin($ensure = "present", $source, $config = '') {
}
class munin::plugins::base {
- include munin::plugin::scriptpaths
-
case $operatingsystem {
centos: {
file {
@@ -192,9 +189,9 @@ define munin::plugin::deploy ($source = '', $enabled = 'true') {
'' => "munin/plugins/$name",
default => $source
}
- debug ( "munin_plugin_${name}: name=$name, source=$source, script_path=${munin::plugin::scriptpaths::script_path}" )
+ debug ( "munin_plugin_${name}: name=$name, source=$source, script_path=$munin::plugin::scriptpaths::script_path" )
file { "munin_plugin_${name}":
- path => "${munin::plugin::scriptpaths::script_path}/${name}",
+ path => "$munin::plugin::scriptpaths::script_path/${name}",
source => "puppet://$servername/$real_source",
ensure => file,
mode => 0755, owner => root, group => 0;