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 {
50 "/etc/munin/munin-node.conf":
51 source => [ "puppet:///munin-node/per-host/$fqdn/munin-node.conf",
52 "puppet:///munin-node/common/munin-node.conf" ],
53 require => Package["munin-node"],
54 notify => Exec["munin-node restart"];
56 "/etc/munin/plugin-conf.d/munin-node":
57 source => [ "puppet:///munin-node/per-host/$fqdn/munin-node.plugin.conf",
58 "puppet:///munin-node/common/munin-node.plugin.conf" ],
59 require => Package["munin-node"],
60 notify => Exec["munin-node restart"];
63 exec { "munin-node restart":
64 path => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin",