SaltStack Setup
Setting up saltstack is relatively easy when bootstrap-salt.sh is used. There are other ways to setup as well but is relatively easier. salt-bootstrap README.md gives a lot of useful commands.
install salt using bootstrap curl
It downloads bootstrap-salt.sh. It can be executed setting up salt-master and salt-minion.
curl -o bootstrap-salt.sh -L https://github.com/saltstack/salt-bootstrap/releases/latest/download/bootstrap-salt.sh
setup salt master
On the master node where bootstrap-salt.sh is downloaded.
setup salt minion
On the master node where bootstrap-salt.sh is downloaded. Minion install just removes the -M flag
configure salt master IP in the minion
edit the file /etc/salt/minion
restart the salt minion service
once the master IP address has been updated. Restart the salt-minion service.
list salt key in salt-master
accept the keys to enroll the minion
accept the single key to enrool the minion
test salt execution with the following command
salt states and pillars
The salt states and pillars are setup at /srv folder. States are saved in a folder called /srv/salt and pillar data are saved into the folder /srv/pillar