summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2009-02-21 15:49:26 +0000
committermh <mh@immerda.ch>2009-02-21 15:49:26 +0000
commit50af1520524eed3ae6cba43bf9aec0e2256954a4 (patch)
tree011cba0b7e783257e6f3cf7491cef080a2ec5bcb /manifests
parent59963536c57f646f1b5cc66855451632dcf39b85 (diff)
removed debug code
Diffstat (limited to 'manifests')
-rw-r--r--manifests/plugin.pp7
1 files changed, 0 insertions, 7 deletions
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",