From 99e32a12d401828e71c13309bf21460086f77e0e Mon Sep 17 00:00:00 2001 From: mh Date: Wed, 29 Jan 2014 23:32:52 +0100 Subject: unify logdir --- manifests/client/openbsd.pp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'manifests/client') diff --git a/manifests/client/openbsd.pp b/manifests/client/openbsd.pp index 5ced4c4..64ea588 100644 --- a/manifests/client/openbsd.pp +++ b/manifests/client/openbsd.pp @@ -1,6 +1,6 @@ # generate a few missing things on openbsd class munin::client::openbsd inherits munin::client::base { - file{[ '/var/run/munin', '/var/log/munin' ]: + file{[ '/var/run/munin', '/var/log/munin-node' ]: ensure => directory, owner => root, group => 0, @@ -17,10 +17,10 @@ class munin::client::openbsd inherits munin::client::base { status => 'test -e /var/run/munin/munin-node.pid && (ps ax | egrep -q "^ *$(cat /var/run/munin/munin-node.pid).*munin-node")', hasstatus => true, hasrestart => true, - require => [ File['/var/run/munin'], File['/var/log/munin'] ], + require => [ File['/var/run/munin'], File['/var/log/munin-munin'] ], } cron{'clean_munin_logfile': - command => 'rm /var/log/munin/munin-node.log; kill -HUP `cat /var/run/munin/munin-node.pid`', + command => 'rm /var/log/munin-node/munin-node.log; kill -HUP `cat /var/run/munin/munin-node.pid`', minute => 0, hour => 2, weekday => 0, -- cgit v1.2.3