summaryrefslogtreecommitdiff
path: root/manifests/openbsd.pp
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2010-11-28 13:01:46 -0500
committerMicah Anderson <micah@riseup.net>2010-11-28 13:01:46 -0500
commit735572fac73a710321b2bc469be2cbdf17c46b11 (patch)
tree96b4c66216e132b7f1244456d074b4b69d01ba70 /manifests/openbsd.pp
parentbec32391d6678a9f52f71658d98a2700ddd31f60 (diff)
Fix whitespace and coding standards to use standard formatting styles (I believe that this Closes #2353)
Diffstat (limited to 'manifests/openbsd.pp')
-rw-r--r--manifests/openbsd.pp27
1 files changed, 16 insertions, 11 deletions
diff --git a/manifests/openbsd.pp b/manifests/openbsd.pp
index 1eeaba5..cff727e 100644
--- a/manifests/openbsd.pp
+++ b/manifests/openbsd.pp
@@ -1,7 +1,9 @@
class puppet::openbsd inherits puppet::base {
+
File['puppet_config']{
owner => '_puppet'
}
+
Service['puppet']{
restart => '/bin/kill -HUP `/bin/cat /var/run/puppet/agent.pid`',
stop => '/bin/kill `/bin/cat /var/run/puppet/agent.pid`',
@@ -10,18 +12,21 @@ class puppet::openbsd inherits puppet::base {
hasrestart => false,
pattern => 'puppet agent',
}
- openbsd::rc_local{'puppetd':
+
+ openbsd::rc_local { 'puppetd':
binary => '/usr/local/bin/puppet agent',
}
- cron { 'puppetd_check':
- command => '/bin/ps ax | /usr/bin/grep -v grep | /usr/bin/grep -q "puppet agent" || (sleep `echo $RANDOM/2000*60 | bc` && /usr/local/bin/puppet agent)',
- user => root,
- minute => 0,
- }
- cron { 'puppetd_restart':
- command => 'sleep `echo $RANDOM/2000*60 | bc` && /bin/kill `/bin/cat /var/run/puppet/agent.pid`; /usr/local/bin/puppet agent',
- minute => 0,
- hour => 22,
- monthday => '*/2',
+
+ cron {
+ 'puppetd_check':
+ command => '/bin/ps ax | /usr/bin/grep -v grep | /usr/bin/grep -q "puppet agent" || (sleep `echo $RANDOM/2000*60 | bc` && /usr/local/bin/puppet agent)',
+ user => root,
+ minute => 0;
+
+ 'puppetd_restart':
+ command => 'sleep `echo $RANDOM/2000*60 | bc` && /bin/kill `/bin/cat /var/run/puppet/agent.pid`; /usr/local/bin/puppet agent',
+ minute => 0,
+ hour => 22,
+ monthday => '*/2',
}
}