salt-minion setup itself is so powerful that it can use most of Salt's functionality on its own. This is ideal for testing various bits of your Salt infrastructure, from states to custom modules. In this lesson, we're going to learn how to set up a masterless minion and ensure we can easily run commands against it.
curl -L https://bootstrap.saltstack.com -o install_salt.sh sudo sh install_salt.sh -P
Turn off and disable the
sudo systemctl stop salt-minion sudo systemctl disable salt-minion
/etc/salt/minion configuration and set the
sudo $EDITOR /etc/salt/minion file_client: local
Save and exit the file.
We can now go ahead and test our masterless minion just to see if any commands work. We've used the
network.ip_addrs command before, so let's use that:
sudo salt-call network.ip_addrs