Skip to content

Instantly share code, notes, and snippets.

@arubis
Created August 12, 2015 15:30
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 arubis/57df03201ebad146fe4a to your computer and use it in GitHub Desktop.
Save arubis/57df03201ebad146fe4a to your computer and use it in GitHub Desktop.
Attempts at salt module `cron.rm_job`
ubuntu@salt:/srv/salt$ sudo salt db0\* cron.list_tab deployer
db0.mydomain.com:
----------
crons:
|_
----------
cmd:
export BACKUP_SCOPE=full && /usr/local/rbenv/shims/backup perform -t lrnz
comment:
daymonth:
*
dayweek:
*
hour:
0
identifier:
full-db-backup
minute:
21
month:
*
env:
|_
----------
name:
BACKUP_ENV
value:
staging
pre:
special:
ubuntu@salt:/srv/salt$ sudo salt db0\* cron.rm deployer identifier=full-db-backup
db0.mydomain.com:
TypeError encountered executing cron.rm: rm_job() takes at least 2 arguments (2 given). See debug log for more info.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment