Hello All,
I am new to Salt. Trying to create a configuration, which will help me prepare a new host by installing required rpm packages.
As a test, I created this top.sls file:
[root@Vm-Saltmaster salt]# pwd
/etc/salt
[root@Vm-Saltmaster salt]# cat top.sls
base:
'*':
- core
- edit
[root@Vm-Saltmaster salt]#
And core/init.sls is like this:
[root@Vm-Saltmaster core]# pwd
/srv/salt/base/core
[root@Vm-Saltmaster core]#cat init.sls
screen:
pkg:
- installed
And when I run this command on saltmaster -
salt
vm-salttest.cltp.com state.sls core
It works well and the minion gets package `screen' installed in it.
Now I want to get the same run when the minion boots up and starts the salt-minion service(minion pulls its state from master and runs it),
so that I need not run the command manually on the saltmaster/minion every time.
Can somebody guide me how to do it, or give me pointers to docs which clearly explains how to do this?
Thanks in advance,
Raja.