Jeepyb User | dd14e0b | 2017-02-28 15:19:32 +0000 | [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 | # Refresh salt master config | ||||
5 | salt -C 'I@salt:master' state.sls salt.master,reclass | ||||
6 | |||||
7 | # Refresh minion's pillar data | ||||
8 | salt '*' saltutil.refresh_pillar | ||||
9 | |||||
10 | # Sync all salt resources | ||||
11 | salt '*' saltutil.sync_all | ||||
12 | |||||
13 | sleep 5 | ||||
14 | |||||
15 | # Bootstrap all nodes | ||||
16 | salt "*" state.sls linux,openssh,salt.minion,ntp,rsyslog |