blob: ea3d147efbe6f1a4e771da27d50bd29597938019 [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