22.27.7. salt.states.at

22.27.7.1. 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

Docs for previous releases are available on salt.rtfd.org.

Latest Salt release: 2014.7.2

Table Of Contents

Previous topic

22.27.6. salt.states.archive

Next topic

22.27.8. salt.states.augeas

SaltStack News

Upcoming SaltStack events, webinars and local meet ups and user groups.