2019-10-15 03:20:02 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# vim: ft=yaml
|
2019-08-27 23:57:39 +02:00
|
|
|
---
|
2017-07-28 01:43:45 +02:00
|
|
|
cron:
|
2019-08-27 23:57:39 +02:00
|
|
|
enabled: true # Default
|
2019-03-31 01:58:35 +01:00
|
|
|
lookup: # Not needed, just if you want to use another cron program
|
|
|
|
pkg: cronie
|
2019-03-31 00:06:08 +01:00
|
|
|
tasks:
|
|
|
|
task1:
|
2019-03-31 01:58:35 +01:00
|
|
|
type: present # Default
|
|
|
|
name: echo test > /tmp/test
|
|
|
|
user: root
|
2019-03-31 00:06:08 +01:00
|
|
|
minute: 0
|
|
|
|
hour: 0
|
|
|
|
daymonth: 7
|
|
|
|
month: 1
|
|
|
|
dayweek: 6
|
2019-03-31 01:58:35 +01:00
|
|
|
comment: comment1
|
2019-03-31 00:06:08 +01:00
|
|
|
task2:
|
2019-03-31 01:58:35 +01:00
|
|
|
type: absent # To remove that crontask
|
|
|
|
name: echo task2 > /tmp/test2
|
|
|
|
user: root
|
|
|
|
minute: random
|
2019-03-31 00:06:08 +01:00
|
|
|
hour: 1
|
|
|
|
task3:
|
2019-03-31 01:58:35 +01:00
|
|
|
type: absent
|
|
|
|
name: echo task3 > /tmp/test3
|
|
|
|
user: root
|
2019-03-31 00:06:08 +01:00
|
|
|
special: '@hourly'
|
2019-03-31 01:58:35 +01:00
|
|
|
comment: comment3
|
2019-03-31 00:06:08 +01:00
|
|
|
task4:
|
2019-03-31 01:58:35 +01:00
|
|
|
type: present # run every 5 minutes
|
|
|
|
name: echo task4 > /tmp/test4
|
|
|
|
user: root
|
2019-03-31 00:06:08 +01:00
|
|
|
minute: '*/5'
|
|
|
|
hour: '*'
|
2019-03-31 01:58:35 +01:00
|
|
|
comment: comment4
|