Module for managing the Salt schedule on a minion
New in version 2014.7.0.
Add a job to the schedule
CLI Example:
salt '*' schedule.add job1 function='test.ping' seconds=3600
# If function have some arguments, use job_args
salt '*' schedule.add job2 function='cmd.run' job_args=['date >> /tmp/date.log'] seconds=60
Build a schedule job
CLI Example:
salt '*' schedule.build_schedule_item job1 function='test.ping' seconds=3600
Copy scheduled job to another minion or minions.
CLI Example:
salt '*' schedule.copy jobname target
Delete a job from the minion's schedule
CLI Example:
salt '*' schedule.delete job1
Disable all scheduled jobs on the minion
CLI Example:
salt '*' schedule.disable
Disable a job in the minion's schedule
CLI Example:
salt '*' schedule.disable_job job1
Enable all scheduled jobs on the minion
CLI Example:
salt '*' schedule.enable
Enable a job in the minion's schedule
CLI Example:
salt '*' schedule.enable_job job1
List the jobs currently scheduled on the minion
CLI Example:
salt '*' schedule.list
salt '*' schedule.list show_all=True
Modify an existing job in the schedule
CLI Example:
salt '*' schedule.modify job1 function='test.ping' seconds=3600
Move scheduled job to another minion or minions.
CLI Example:
salt '*' schedule.move jobname target
Purge all the jobs currently scheduled on the minion
CLI Example:
salt '*' schedule.purge
Reload saved scheduled jobs on the minion
CLI Example:
salt '*' schedule.reload
Run a scheduled job on the minion immediately
CLI Example:
salt '*' schedule.run_job job1
salt '*' schedule.run_job job1 force=True
Force the job to run even if it is disabled.
Save all scheduled jobs on the minion
CLI Example:
salt '*' schedule.save
Docs for previous releases are available on readthedocs.org.
Latest Salt release: 2015.5.2