munin: Added munin::disable

This commit is contained in:
Ossi Salmi 2013-06-15 23:06:53 +03:00
parent 8665d16f90
commit 3b836e1e1a

View file

@ -223,6 +223,25 @@ define munin::plugin($config = "") {
}
# Disable munin plugin.
#
define munin::disable() {
file { "/etc/munin/plugin-conf.d/${name}":
ensure => present,
mode => "0644",
owner => "root",
group => $::operatingsystem ? {
"openbsd" => "wheel",
default => "root",
},
content => "[${name}]\ncommand /bin/true\n",
notify => Exec["munin-node-configure"],
}
}
# Install and configure munin server.
#
# === Requires