Salt stack job scheduling
The scheduling system exposes the execution of any execution function on minions or any runner on the master.
It is performed by the following methods
*Schedule − The schedule option in either the master or the minion config files.
*Minion pillar data − It refreshes the minion pillar data using the saltutil.refesh_pillar command.
*The schedule state or schedule module.
Salt states are executed on the minion. we can pass the positional arguments and provide a YAML dict of the named arguments in the config file as shown below
Here, job1 will execute the function saltstate.sls with the specified arguments, httpd for every hour. The test: True is the additional argument for the httpd command that is defined in saltstate. sls.