diff --git a/munin/manifests/init.pp b/munin/manifests/init.pp index c85a4d5..5bd8697 100644 --- a/munin/manifests/init.pp +++ b/munin/manifests/init.pp @@ -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