diff options
author | mh <mh@immerda.ch> | 2008-12-27 15:54:45 +0000 |
---|---|---|
committer | mh <mh@immerda.ch> | 2008-12-27 15:54:45 +0000 |
commit | 26fb5d12d5da80a8057aeaecaa65e266964d8478 (patch) | |
tree | c952686107449f61d5905f3f1c934b829c45c66c /manifests/openbsd.pp | |
parent | 81d2c0ba518dca2861e685edd7af657a0726340d (diff) |
factored classes out in their own files
Diffstat (limited to 'manifests/openbsd.pp')
-rw-r--r-- | manifests/openbsd.pp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/manifests/openbsd.pp b/manifests/openbsd.pp new file mode 100644 index 0000000..c2fcccb --- /dev/null +++ b/manifests/openbsd.pp @@ -0,0 +1,23 @@ +class puppet::openbsd inherits puppet::base { + Service['puppet']{ + restart => '/bin/kill -HUP `/bin/cat /var/run/puppet/puppetd.pid`', + stop => '/bin/kill `/bin/cat /var/run/puppet/puppetd.pid`', + start => '/usr/local/bin/puppetd', + hasstatus => false, + hasrestart => false, + } + openbsd::add_to_rc_local{'puppetd': + binary => '/usr/local/bin/puppetd', + } + cron { 'puppetd_check': + command => '/bin/ps ax | /usr/bin/grep -v grep | /usr/bin/grep -q puppetd || (sleep `echo $RANDOM/2000*60 | bc` && /usr/local/bin/puppetd)', + user => root, + minute => 0, + } + cron { 'puppetd_restart': + command => 'sleep `echo $RANDOM/2000*60 | bc` && /bin/kill `/bin/cat /var/run/puppet/puppetd.pid`; /usr/local/bin/puppetd', + minute => 0, + hour => 22, + monthday => '*/2', + } +} |