Richard Felkl | d59c565 | 2018-02-08 13:14:05 +0100 | [diff] [blame] | 1 | #!/bin/bash -xe |
azvyagintsev | 6d45385 | 2018-02-26 16:56:37 +0200 | [diff] [blame] | 2 | |
azvyagintsev | 41bc80d | 2018-07-12 13:46:56 +0300 | [diff] [blame] | 3 | SALT_OPTS="-l debug -t 10 --retcode-passthrough --no-color" |
| 4 | |
azvyagintsev | 6d45385 | 2018-02-26 16:56:37 +0200 | [diff] [blame] | 5 | echo "deb [arch=amd64] ${APT_MIRANTIS_SALT_REPO}" > /etc/apt/sources.list.d/mcp_salt.list |
Richard Felkl | d59c565 | 2018-02-08 13:14:05 +0100 | [diff] [blame] | 6 | apt-get update |
Richard Felkl | d59c565 | 2018-02-08 13:14:05 +0100 | [diff] [blame] | 7 | apt-get install salt-formula* -y |
| 8 | salt-call saltutil.refresh_pillar |
| 9 | salt-call saltutil.sync_all |
azvyagintsev | 41bc80d | 2018-07-12 13:46:56 +0300 | [diff] [blame] | 10 | |
| 11 | salt-call ${SALT_OPTS} state.sls salt |
| 12 | salt-call ${SALT_OPTS} state.sls linux.system.repo,linux.system.directory,linux.system.package |
| 13 | salt-call ${SALT_OPTS} state.sls linux.system.file |
| 14 | salt-call ${SALT_OPTS} state.sls docker.host |
| 15 | salt-call ${SALT_OPTS} state.sls docker exclude=docker.client.registry |
Richard Felkl | 4775790 | 2018-03-02 22:44:43 +0100 | [diff] [blame] | 16 | sleep 120 |
azvyagintsev | 41bc80d | 2018-07-12 13:46:56 +0300 | [diff] [blame] | 17 | salt-call ${SALT_OPTS} state.sls linux.network |
| 18 | salt-call ${SALT_OPTS} state.sls nginx |
| 19 | salt-call ${SALT_OPTS} state.sls maas.mirror |