/salt-sandbox

a Docker based sandbox for Salt

Primary LanguageSaltStack

Salt Sanbox

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.

Requirements

You just need a working Docker Environment

Installation

docker-compose up

Volumes

Master

./states is mounted on /srv/salt.

./pillar is mounted on /srv/pillar.

./master.d is mounted on /etc/salt/master.d

Minions

./minion.d is mounted on /etc/salt/minion.d

Usage

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

Licence

Provided under MIT licence.