From 1a6afef5c71eb98ec357163c1e345d10ee731acc Mon Sep 17 00:00:00 2001 From: mh Date: Wed, 1 Oct 2008 22:20:36 +0000 Subject: use new unified adding cmd --- manifests/client.pp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'manifests/client.pp') diff --git a/manifests/client.pp b/manifests/client.pp index dcec13e..db5587f 100644 --- a/manifests/client.pp +++ b/manifests/client.pp @@ -71,7 +71,7 @@ class munin::client::base { include munin::plugins::base } -# currently we install munin on openbsd by hand +# currently we install munin on openbsd by targz # :( class munin::client::openbsd inherits munin::client::base { file{'/usr/src/munin_openbsd.tar.gz': @@ -94,9 +94,8 @@ class munin::client::openbsd inherits munin::client::base { require => Exec['extract_openbsd'], owner => root, group => 0, mode => 0755; } - exec{'enable_munin_on_boot': - command => 'echo "if [ -x /opt/munin/sbin/munin-node ]; then echo -n \' munin\'; /opt/munin/sbin/munin-node; fi" >> /etc/rc.local', - unless => 'grep -q "munin-node" /etc/rc.local', + openbsd::add_to_rc_local{'munin-node': + binary => '/opt/munin/sbin/munin-node', require => File['/var/run/munin'], } Service['munin-node']{ -- cgit v1.2.3