If you aren't using Docker-Compose, you can spin up individual Salt Masters & Minions like this:
docker run tvoll/one-salty-docker:salt-master
docker run tvoll/one-salty-docker:salt-minion
Docker Compose file which creates a Salt master and minion(s). The Salt master auto accepts all minions. Used for testing the salt master with > 1000 minions.
Start the salt master and 1 minion.
docker-compose up -d
When using auto_accept: False (default setting) every minion needs to be accepted. List minions waiting for keys to be accepted. This part can be skipped when using this repo as is.
docker-compose exec master salt-key -L
Accept all pending keys for all minions
docker-compose exec master salt-key -A
Scale some extra minions
docker-compose up --scale minion=5
Run some commands on the minions
docker-compose exec master salt '*' test.ping
Scale the minion service
rancher scale minion=100
Run a ping
rancher exec master salt '*' test.ping
Time the ping
time rancher exec master salt '*' test.ping
Collatz
rancher exec master salt '*' test.collatz 1
Since Portainer doesn't come with an App Template for SaltStack, you can use these docker compose files in order to build the stack in seconds.
Content type
Image
Digest
Size
348.9 MB
Last updated
about 8 years ago
docker pull tvoll/one-salty-docker:salt-minion