Run salt-ssh in a container. Initially seeded with a docker formula.
- Create a file name
roster
. Use the roster.example file as a reference. Map it into the docker container-v ${PWD}/roster:/etc/salt/roster
. - The container is setup to pull pillar data from git repo(s). Add the git repo to
/srv/pillar/deps.sls
. - The container is setup to pull salt formulas from git repo(s). Add the git repo to
/srv/pillar/deps.sls
.
docker build -t jweinstock/salt-ssh .
docker run --rm -it -v $(pwd)/roster:/etc/salt/roster jweinstock/salt-ssh
salt-ssh -i 'test' state.apply config
salt-ssh -i 'test' state.apply docker.host
https://github.com/jacobweinstock/salt-ssh
https://hub.docker.com/r/jweinstock/salt-ssh/
docker pull jweinstock/salt-ssh