blob: fa6eed6a7005e491ef69c421f2bc8cea7fd7f3a9 [file] [log] [blame]
Richard Felkld59c5652018-02-08 13:14:05 +01001#!/bin/bash -xe
azvyagintsev6d453852018-02-26 16:56:37 +02002
azvyagintsev29410ee2018-07-12 20:02:30 +03003# Wait for salt-master and salt-minion to wake up after restart
4# since we just perform 'reboot.sh'
5salt-call --timeout=120 test.ping
6
azvyagintsev41bc80d2018-07-12 13:46:56 +03007SALT_OPTS="-l debug -t 10 --retcode-passthrough --no-color"
8
Richard Felkld59c5652018-02-08 13:14:05 +01009salt-call saltutil.refresh_pillar
10salt-call saltutil.sync_all
azvyagintsev41bc80d2018-07-12 13:46:56 +030011
12salt-call ${SALT_OPTS} state.sls salt
13salt-call ${SALT_OPTS} state.sls linux.system.repo,linux.system.directory,linux.system.package
14salt-call ${SALT_OPTS} state.sls linux.system.file
15salt-call ${SALT_OPTS} state.sls docker.host
16salt-call ${SALT_OPTS} state.sls docker exclude=docker.client.registry
Richard Felkl47757902018-03-02 22:44:43 +010017sleep 120
azvyagintsev41bc80d2018-07-12 13:46:56 +030018salt-call ${SALT_OPTS} state.sls linux.network
19salt-call ${SALT_OPTS} state.sls nginx
20salt-call ${SALT_OPTS} state.sls maas.mirror
azvyagintsev05e84372018-10-17 17:31:28 +030021
22# Duplicate of ubuntu_info.sh
23mkdir -p /var/log/bootstrap_logs/ ; pushd /var/log/bootstrap_logs/
24 # Drop some reclass info,if available
25 if [[ $(which salt-key) ]] ; then
26 for node in $(salt-key -l acc | grep -v 'Accepted Keys:') ; do
27 salt ${node} pillar.data --out=json > ${node}.pillardata.json || true
28 reclass -n ${node} -o json > ${node}.reclass.json || true
29 done
30 fi
31popd