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