]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/munin-node/manifests/init.pp
We need a better path for the init scripts to work
[dsa-puppet.git] / modules / munin-node / manifests / init.pp
1 class munin-node {
2
3     package { munin-node: ensure => latest }
4
5     file { "/etc/munin/munin-node.conf":
6         owner   => root,
7         group   => root,
8         mode    => 664,
9         source  => [ "puppet:///munin-node/per-host/$fqdn/munin-node.conf",
10                      "puppet:///munin-node/common/munin-node.conf" ],
11         require => Package["munin-node"],
12         notify  => Exec["munin-node restart"],
13     }
14
15     exec { "munin-node restart":
16         path        => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin",
17         refreshonly => true,
18     }
19 }
20