salt.states.at

Configuration disposable regularly scheduled tasks for at.

The at state can be add disposable regularly scheduled tasks for your system.

salt.states.at.absent(name, jobid=None, **kwargs)

Remove a job from queue The 'kwargs' can include hour. minute. day. month. year

limit
Target range
tag
Job's tag
runas
Runs user-specified jobs
example1:
  at.absent:
    - limit: all
example2:
  at.absent:
    - limit: all
    - year: 13
example3:
  at.absent:
    - limit: all
    - tag: rose
    - runas: jim
example4:
  at.absent:
    - limit: all
    - tag: rose
    - day: 13
    - hour: 16
salt.states.at.present(name, timespec, tag=None, runas=None, user=None, job=None)

Add a job to queue.

job
Command to run.
timespec
The 'timespec' follows the format documented in the at(1) manpage.
tag
Make a tag for the job.
runas

Users run the job.

Deprecated since version 2014.1.4.

user

The user to run the at job

New in version 2014.1.4.

rose:
  at.present:
    - job: 'echo "I love saltstack" > love'
    - timespec: '9:09 11/09/13'
    - tag: love
    - user: jam