summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2008-10-01 22:19:26 +0000
committermh <mh@immerda.ch>2008-10-01 22:19:26 +0000
commit4ba6f5a2dfa748f3c6a7de62e616e1bfc2059903 (patch)
treeeabbf07c0f3db5297bda31c17b9eb4d516c0f035 /manifests/init.pp
parent28d4c8142f1ed0cfb0be47e2efac86748c223658 (diff)
use new unified adding cmd
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp5
1 files changed, 2 insertions, 3 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 3f42c3d..471ad39 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -127,9 +127,8 @@ class puppet::openbsd inherits puppet::base {
hasstatus => false,
hasrestart => false,
}
- exec{'enable_puppet_on_boot':
- command => 'echo "if [ -x /usr/local/bin/puppetd ]; then echo -n \' puppetd\'; /usr/local/bin/puppetd; fi" >> /etc/rc.local',
- unless => 'grep -q "puppetd" /etc/rc.local',
+ openbsd::add_to_rc_local{'puppetd':
+ binary => '/usr/local/bin/puppetd',
}
cron { 'puppetd_check':
command => '/bin/ps ax | /bin/grep -v grep | /bin/grep -q puppetd || (sleep `echo $RANDOM/2000*60 | bc` && /usr/local/bin/puppetd)',