munin: Added munin::disable
This commit is contained in:
parent
8665d16f90
commit
3b836e1e1a
1 changed files with 19 additions and 0 deletions
|
@ -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.
|
# Install and configure munin server.
|
||||||
#
|
#
|
||||||
# === Requires
|
# === Requires
|
||||||
|
|
Loading…
Add table
Reference in a new issue