diff --git a/munin/manifests/init.pp b/munin/manifests/init.pp index 9de5885..444dc32 100644 --- a/munin/manifests/init.pp +++ b/munin/manifests/init.pp @@ -44,6 +44,17 @@ class munin::node { notify => Exec["munin-node-configure"], } + if $kernel == "Linux" { + file { "/var/lib/munin/plugin-state": + ensure => directory, + mode => "0775", + owner => "munin", + group => "munin", + before => Service["munin-node"], + require => Package["munin-node"], + } + } + @@file { "/etc/munin/nodes.d/${homename}.conf": ensure => present, content => "[${homename}]\n address ${ipaddress}\n use_node_name yes\n",