summaryrefslogtreecommitdiff
path: root/manifests/cron/openbsd.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/cron/openbsd.pp')
-rw-r--r--manifests/cron/openbsd.pp22
1 files changed, 22 insertions, 0 deletions
diff --git a/manifests/cron/openbsd.pp b/manifests/cron/openbsd.pp
new file mode 100644
index 0000000..38b2a4a
--- /dev/null
+++ b/manifests/cron/openbsd.pp
@@ -0,0 +1,22 @@
+class puppet::cron::openbsd inherits puppet::openbsd {
+ include puppet::cron::base
+ case $puppet_config {
+ '': { $puppet_config = '/etc/puppet/puppet.conf' }
+ }
+ Openbsd::Add_to_rc_local['puppetd']{
+ ensure => 'absent',
+ }
+ Cron['puppetd_check']{
+ ensure => absent,
+ }
+ Cron['puppetd_check']{
+ ensure => absent,
+ }
+
+ cron { 'puppetd_restart':
+ command => "puppetd --onetime --no-daemonize --splay true --config=$puppet_config",
+ user => 'root',
+ minute => [0,30],
+ }
+
+}