Salt Sandbox helps you to easily create a multi-container Docker-based Salt environment. It is useful for testing purpose or to simply learn and play around.
The project will boot up a Salt Master (master) and two minions (jerry and stuart).
Feel free to update the states/
directory with your own state files to try out your modules outside from your production environment.
If you are new to Salt, check out cheatsheet and run your first commands on this infrastructure.
You just need a working Docker Environment
docker-compose up
./states
is mounted on /srv/salt
.
./pillar
is mounted on /srv/pillar
.
./master.d
is mounted on /etc/salt/master.d
./minion.d
is mounted on /etc/salt/minion.d
You can execute your commands directly on the master container. With this command, you will be able to check which minions are alive:
docker exec `docker ps -qf "name=saltsandbox_master"` salt '*' test.ping
Provided under MIT licence.