docker-compose saltstack playground
Docker-compose file that create saltstack playground.
Containers:
- master - master container
- minions with prefixed ID (prefix-hostname)
- prod-* - two containers for production
- dev-* - two containers for development
- data/master.conf - master configuration file - just type there your changes to master file
- data/minion.conf - minion configuration file - just type there your changes to minion file
- data/pillar - will be mounted as /srv/pillar
- data/salt - will be mounted as /srv/salt
- data/formulas - will be mounted as /srv/formulas
$ git submodule update --init --recursive
$ docker-compose up --build
there is no need to run $ salt '*' state.apply
on startup.
Master will apply state due to startup_states: highstate
entry in minion.conf.
It can take some time to bootstrap minions.
$ docker-compose exec master /bin/bash
$ docker-compose exec --index=1 minion-dev /bin/bash
$ docker-compose exec --index=1 minion-prod /bin/bash