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
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, user=None, job=None)¶Add a job to queue.
The user to run the at job
2014.1.4 新版功能.
rose:
at.present:
- job: 'echo "I love saltstack" > love'
- timespec: '9:09 11/09/13'
- tag: love
- user: jam