Skip to content

Docker Compose file which creates a Salt master and minion(s) with help of Docker for testing.

License

Notifications You must be signed in to change notification settings

danielpalstra/docker-compose-saltstack

Repository files navigation

PoC Saltstack

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 stack

Start the salt master and 1 minion.

docker-compose up -d

Registering minions

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

Using salt

Scale some extra minions

docker-compose up --scale minion=5

Run some commands on the minions

docker-compose exec master salt '*' test.ping

Using salt with Rancher

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

About

Docker Compose file which creates a Salt master and minion(s) with help of Docker for testing.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published