This is a simple lab to test salt commands, features, templates etc.
This lab basically follows the next posts :
- https://docs.saltproject.io/salt/install-guide/en/latest/topics/configure-master-minion.html#configure-master-minion
- https://docs.saltproject.io/salt/install-guide/en/latest/topics/configure-master-minion.html#configure-master-minion
In order to run this lab you will need to have the following components installed :
- docker
- docker-compose
- Taskgo (optional).
If you are using Taskgo you can simply run the following commands to create the lab that will create a salt-master box and a salt-minion box.
runme
task -l
task start-lab
If you want to scale the minion machines just run :
task scale-minion -- 6 # To run 7 salt minion host.
Now we are ready to start launching salt commands.
task sconnect-master # This will give you a bash shell in the salt master box
docker-compose up -d
docker-compose up -d --scale salt-minion=4
docker-compose exec salt-master bash