From 4ba6f5a2dfa748f3c6a7de62e616e1bfc2059903 Mon Sep 17 00:00:00 2001 From: mh Date: Wed, 1 Oct 2008 22:19:26 +0000 Subject: use new unified adding cmd --- manifests/init.pp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'manifests/init.pp') 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)', -- cgit v1.2.3