Skip to content

psrebniak/saltstack-docker-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

directory structure

  • 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

setup

$ git submodule update --init --recursive

how to run

$ 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.

how to get into master

$ docker-compose exec master /bin/bash

how to get into minion

$ docker-compose exec --index=1 minion-dev /bin/bash
$ docker-compose exec --index=1 minion-prod /bin/bash

About

docker-compose saltstack playground

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published