1 define activate_munin_check($ensure=present, script=$name) {
4 default: { $base = $script }
9 file { "/etc/munin/plugins/$name":
10 ensure => "/usr/share/munin/plugins/$base",
11 notify => Exec["munin-node restart"];
15 file { "/etc/munin/plugins/$name":
17 notify => Exec["munin-node restart"];
25 package { munin-node: ensure => installed }
27 activate_munin_check {
48 file { "/etc/munin/munin-node.conf":
49 source => [ "puppet:///munin-node/per-host/$fqdn/munin-node.conf",
50 "puppet:///munin-node/common/munin-node.conf" ],
51 require => Package["munin-node"],
52 notify => Exec["munin-node restart"],
55 exec { "munin-node restart":
56 path => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin",