forked from dseira/cron-formula
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(pillar): extract test pillar from
pillar.example
- Loading branch information
Showing
2 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# -*- coding: utf-8 -*- | ||
# vim: ft=yaml | ||
--- | ||
cron: | ||
enabled: true # Default | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,35 @@ | ||
# -*- coding: utf-8 -*- | ||
# vim: ft=yaml | ||
--- | ||
cron: {} | ||
cron: | ||
enabled: true # Default | ||
tasks: | ||
task1: | ||
type: present # Default | ||
name: echo test > /tmp/test | ||
user: root | ||
minute: 0 | ||
hour: 0 | ||
daymonth: 7 | ||
month: 1 | ||
dayweek: 6 | ||
comment: comment1 | ||
task2: | ||
type: absent # To remove that crontask | ||
name: echo task2 > /tmp/test2 | ||
user: root | ||
minute: random | ||
hour: 1 | ||
task3: | ||
type: absent | ||
name: echo task3 > /tmp/test3 | ||
user: root | ||
special: '@hourly' | ||
comment: comment3 | ||
task4: | ||
type: present # run every 5 minutes | ||
name: echo task4 > /tmp/test4 | ||
user: root | ||
minute: '*/5' | ||
hour: '*' | ||
comment: comment4 |