diff options
author | mh <mh@immerda.ch> | 2010-08-06 22:34:54 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2010-08-06 22:34:54 +0200 |
commit | f22235b5eda08f3d5503162484c9e2214bc78ecd (patch) | |
tree | 76523c84d0bfabfd0c27984cf76f6facc40dd2c3 | |
parent | 4036ecf691babf80d859b68865e66cea0008a238 (diff) |
use $puppet_crontime also for openbsd
this is a bit hacky, but works.
-rw-r--r-- | manifests/cron/openbsd.pp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/manifests/cron/openbsd.pp b/manifests/cron/openbsd.pp index 5565fbb..56506bb 100644 --- a/manifests/cron/openbsd.pp +++ b/manifests/cron/openbsd.pp @@ -15,6 +15,10 @@ class puppet::cron::openbsd inherits puppet::openbsd { cron { 'puppetd_run': command => "/usr/local/sbin/puppetd --onetime --no-daemonize --splay --config=$puppet_config --color false | grep -E '(^err:|^alert:|^emerg:|^crit:)'", user => 'root', - minute => [0,30], + minute => regsubst($puppet_crontime,'^([\d,\-,*,/,\,]+) ([\d,\-,*,/,\,]+) ([\d,\-,*,/,\,]+) ([\d,\-,*,/,\,]+) ([\d,\-,*,/,\,]+)$','\1'), + hour => regsubst($puppet_crontime,'^([\d,\-,*,/,\,]+) ([\d,\-,*,/,\,]+) ([\d,\-,*,/,\,]+) ([\d,\-,*,/,\,]+) ([\d,\-,*,/,\,]+)$','\2'), + weekday => regsubst($puppet_crontime,'^([\d,\-,*,/,\,]+) ([\d,\-,*,/,\,]+) ([\d,\-,*,/,\,]+) ([\d,\-,*,/,\,]+) ([\d,\-,*,/,\,]+)$','\3'), + month => regsubst($puppet_crontime,'^([\d,\-,*,/,\,]+) ([\d,\-,*,/,\,]+) ([\d,\-,*,/,\,]+) ([\d,\-,*,/,\,]+) ([\d,\-,*,/,\,]+)$','\4'), + monthday => regsubst($puppet_crontime,'^([\d,\-,*,/,\,]+) ([\d,\-,*,/,\,]+) ([\d,\-,*,/,\,]+) ([\d,\-,*,/,\,]+) ([\d,\-,*,/,\,]+)$','\5') } } |