Jaymon / chef-cookbooks

Various Chef cookbooks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chef - Cronjab Recipe could take a list for schedule

Jaymon opened this issue · comments

For example, if you wanted the weekend to be different than monday-friday, you could do something like (instead of creating a whole new block):

"foo-cron" => {
    "command" => "/some/command",
    "schedule" => [
        "0 12 * * 1-5", # run at noon monday-friday
         "0 23 * * 0,6", # run at 11pm on the weekend
    ]
}

From December 2017 issue in private repo