summaryrefslogtreecommitdiff
path: root/manifests/client.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2008-10-01 22:20:36 +0000
committermh <mh@immerda.ch>2008-10-01 22:20:36 +0000
commit1a6afef5c71eb98ec357163c1e345d10ee731acc (patch)
treecb8795adf078a8a7b4d880fe5d0dfc8d95ef4f62 /manifests/client.pp
parent800018f6422ad792191a1109c552fc52f87ea3df (diff)
use new unified adding cmd
Diffstat (limited to 'manifests/client.pp')
-rw-r--r--manifests/client.pp7
1 files changed, 3 insertions, 4 deletions
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']{