1 define activate_munin_check($ensure=present) {
4 file { "/etc/munin/plugins/$name":
5 ensure => "/usr/share/munin/plugins/$name",
6 notify => Exec["munin-node restart"];
10 file { "/etc/munin/plugins/$name":
12 notify => Exec["munin-node restart"];
19 package { munin-node: ensure => installed }
21 activate_munin_check {
40 file { "/etc/munin/munin-node.conf":
41 source => [ "puppet:///munin-node/per-host/$fqdn/munin-node.conf",
42 "puppet:///munin-node/common/munin-node.conf" ],
43 require => Package["munin-node"],
44 notify => Exec["munin-node restart"],
47 exec { "munin-node restart":
48 path => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin",