From 50af1520524eed3ae6cba43bf9aec0e2256954a4 Mon Sep 17 00:00:00 2001 From: mh Date: Sat, 21 Feb 2009 15:49:26 +0000 Subject: removed debug code --- manifests/plugin.pp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'manifests') diff --git a/manifests/plugin.pp b/manifests/plugin.pp index 878221f..82d2d27 100644 --- a/manifests/plugin.pp +++ b/manifests/plugin.pp @@ -28,16 +28,13 @@ define munin::plugin ( $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" ) $plugin = "/etc/munin/plugins/$name" $plugin_conf = "/etc/munin/plugin-conf.d/$name.conf" case $ensure { "absent": { - debug ( "munin_plugin: suppressing $plugin" ) file { $plugin: ensure => absent, } } default: { - debug ( "munin_plugin: making $plugin using src: $plugin_src" ) case $kernel { openbsd: { $basic_require = File['/var/run/munin'] } default: { $basic_require = Package['munin-node'] } @@ -57,17 +54,14 @@ define munin::plugin ( } case $config { '': { - debug("no config for $name") file { $plugin_conf: ensure => absent } } default: { case $ensure { absent: { - debug("removing config for $name") file { $plugin_conf: ensure => absent } } default: { - debug("creating $plugin_conf") file { $plugin_conf: content => "[${name}]\n$config\n", mode => 0644, owner => root, group => 0, @@ -111,7 +105,6 @@ define munin::plugin::deploy ($source = '', $ensure = 'present', $config = '') { default => $source } include munin::plugin::scriptpaths - 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}", source => "puppet://$server/$real_source", -- cgit v1.2.3