From 96a47d904647a3ae483656532c0300d85d5e56af Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 10 Dec 2011 21:09:55 +0100 Subject: [PATCH] Replace df* checks with wrapper --- modules/munin-node/manifests/init.pp | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/modules/munin-node/manifests/init.pp b/modules/munin-node/manifests/init.pp index ab177817..39f2dc61 100644 --- a/modules/munin-node/manifests/init.pp +++ b/modules/munin-node/manifests/init.pp @@ -26,9 +26,6 @@ class munin-node { activate_munin_check { "cpu":; - "df":; - "df_abs":; - "df_inode":; "entropy":; "forks":; "interrupts":; @@ -74,6 +71,25 @@ class munin-node { content => template("munin-node/munin-node.plugin.conf.erb"), require => Package["munin-node"], notify => Exec["munin-node restart"]; + + "/etc/munin/plugins/df": + source => "puppet:///modules/munin/df-wrap", + mode => 555, + require => Package["munin-node"], + notify => Exec["munin-node restart"] + ; + "/etc/munin/plugins/df_abs": + source => "puppet:///modules/munin/df-wrap", + mode => 555, + require => Package["munin-node"], + notify => Exec["munin-node restart"] + ; + "/etc/munin/plugins/df_inode": + source => "puppet:///modules/munin/df-wrap", + mode => 555, + require => Package["munin-node"], + notify => Exec["munin-node restart"] + ; } exec { "munin-node restart": -- 2.39.2