From 06092d1681152082d08d4959718452dbd974aa25 Mon Sep 17 00:00:00 2001 From: Ossi Salmi Date: Thu, 10 May 2012 14:31:37 +0300 Subject: [PATCH] Fixed munin plugin state directory permissions --- munin/manifests/init.pp | 11 +++++++++++ 1 file changed, 11 insertions(+) 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",