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