This is docker project for run Salt Master as container app.
-
Download project:
git clone https://vukor@github.com/vukor/docker-salt.git
-
Install docker and docker-compose on your system
-
Create and start container:
cd docker-salt/
docker-compose up -d
-
Put your base states to states/ and restart container
-
For stop, start, restart containers run:
docker-compose stop [container]
docker-compose start [container]
docker-compose restart [container]
-
For register clients run:
docker exec salt-master salt-key -a CLIENT-HOSTNAME -y
-
After this you can check clients running:
docker exec salt-master salt '*' test.ping
-
Put your receipts to /states and run:
docker exec salt-master salt '*' state.highstate
-
For full manage run:
docker exec salt-master -ti /bin/bash
states - Salt states files