diff options
author | mh <mh@immerda.ch> | 2008-10-01 22:19:26 +0000 |
---|---|---|
committer | mh <mh@immerda.ch> | 2008-10-01 22:19:26 +0000 |
commit | 4ba6f5a2dfa748f3c6a7de62e616e1bfc2059903 (patch) | |
tree | eabbf07c0f3db5297bda31c17b9eb4d516c0f035 /manifests | |
parent | 28d4c8142f1ed0cfb0be47e2efac86748c223658 (diff) |
use new unified adding cmd
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 5 |
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)', |