The second way of installing Salt is via a bootstrap script. This script automatically detects our distribution and downloads the defined packages. The script also provides us with the -A flag, which will add the address of the master to our minions.
To get the script, you can either use wget or curl; the official SaltStack uses curl:
user@master:~$ curl -L https://bootstrap.saltstack.com -o install_salt.sh
This script applies for both masters and minions; the difference is which flags you use when running the script.
To install the master components, run the script with the -M flag for master and -P to allow any Python pip packages to be installed. We can also specify the master address with -A and tell the script not to install the minion service in the master with the -N flag:
user@master:~$ sudo sh install_salt.sh -P -M
To install the minion, just run this:
user@master:~$ sudo sh install_salt.sh -P -A <salt master IP>