https://github.com/jacobweinstock/salt-ssh
salt-ssh in a container
https://github.com/jacobweinstock/salt-ssh
docker salt-ssh saltstack
Last synced: 9 months ago
JSON representation
salt-ssh in a container
- Host: GitHub
- URL: https://github.com/jacobweinstock/salt-ssh
- Owner: jacobweinstock
- Created: 2018-06-15T03:41:06.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-23T19:52:46.000Z (about 7 years ago)
- Last Synced: 2025-03-29T05:29:42.568Z (about 1 year ago)
- Topics: docker, salt-ssh, saltstack
- Language: SaltStack
- Size: 14.6 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Salt-SSH in a Container
Run salt-ssh in a container. Initially seeded with a [docker formula](https://github.com/salt-formulas/salt-formula-docker.git).
* 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`.
###### Build the image
```bash
docker build -t jweinstock/salt-ssh .
```
###### Run the image
```bash
docker run --rm -it -v $(pwd)/roster:/etc/salt/roster jweinstock/salt-ssh
```
###### Run salt-ssh commands
```sh
salt-ssh -i 'test' state.apply config
salt-ssh -i 'test' state.apply docker.host
```
###### Source Repo
[https://github.com/jacobweinstock/salt-ssh](https://github.com/jacobweinstock/salt-ssh)
###### Docker Image
[https://hub.docker.com/r/jweinstock/salt-ssh/](https://hub.docker.com/r/jweinstock/salt-ssh/)
`docker pull jweinstock/salt-ssh`