From 3b836e1e1aea4e5480ac06133e5094d7063a2a6a Mon Sep 17 00:00:00 2001 From: Ossi Salmi Date: Sat, 15 Jun 2013 23:06:53 +0300 Subject: [PATCH] munin: Added munin::disable --- munin/manifests/init.pp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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