Skip to content

Instantly share code, notes, and snippets.

Setting the following schedule.sls in pillar on the master
schedule:
job1:
function : state.sls <-- where does this state.sls reside ? /srv/salt on master, minion or in /srv/pillar on master ?
minutes : 10
maxrunning : 1
top.sls :
base:
'*':
- some stuff
'role:apache':
- match grain
- Apache.apache_conf
base/apache_conf.sls looks like this :
config-file-copy:
Tag: salt/job/20150821110504154304/ret/10.10.10.10
Data:
{'_stamp': '2015-08-21T18:05:08.457493',
'cmd': '_return',
'fun': 'state.highstate',
'fun_args': [],
'id': '10.10.10.10',
'jid': '20150821110504154304',
'out': 'highstate',
'retcode': 1,