Simon Pasquier | a4e3825 | 2017-04-28 11:14:29 +0200 | [diff] [blame^] | 1 | #!/bin/bash -x |
2 | exec > >(tee -i /tmp/"$(basename "$0" .sh)"_"$(date '+%Y-%m-%d_%H-%M-%S')".log) 2>&1 | ||||
3 | |||||
4 | salt -C 'I@docker:swarm' state.sls docker.host | ||||
5 | salt -C 'I@docker:swarm:role:master' state.sls docker.swarm | ||||
6 | salt -C 'I@docker:swarm' state.sls salt.minion.grains | ||||
7 | salt -C 'I@docker:swarm' mine.update | ||||
8 | salt -C 'I@docker:swarm:role:manager' state.sls docker.swarm -b 1 | ||||
9 | salt -C 'I@docker:swarm:role:master' cmd.run 'docker node ls' |