Skip to content

Instantly share code, notes, and snippets.

@anthonyscolaro
Last active January 1, 2016 13:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anthonyscolaro/34a2c7f4faff99a7de61 to your computer and use it in GitHub Desktop.
Save anthonyscolaro/34a2c7f4faff99a7de61 to your computer and use it in GitHub Desktop.
How can I set it up to email if there's an error?
example_cron:
cron.present:
- name: 'cd /var/www/{{ grains['domain'] }}/current/ && php bin/cron'
- user: deploy
- minute: '*'
- hour: '*'
- daymonth: '*'
- month: '*'
- dayweek: '*'
- identifier: 'example_cron'
- comment: 'Installed via Salt'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment