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 | |
| 3 | 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] | 4 | apt-get update |
Richard Felkl | d59c565 | 2018-02-08 13:14:05 +0100 | [diff] [blame] | 5 | apt-get install salt-formula* -y |
| 6 | salt-call saltutil.refresh_pillar |
| 7 | salt-call saltutil.sync_all |
| 8 | salt-call -t 5 --retcode-passthrough --no-color state.sls salt |
azvyagintsev | 6d45385 | 2018-02-26 16:56:37 +0200 | [diff] [blame] | 9 | salt-call -t 5 --retcode-passthrough --no-color state.sls linux.system.repo,linux.system.directory,linux.system.package |
| 10 | salt-call -t 5 --retcode-passthrough --no-color state.sls linux.system.file |
| 11 | salt-call -t 5 --retcode-passthrough --no-color state.sls docker.host |
| 12 | salt-call -t 5 --retcode-passthrough --no-color state.sls docker exclude=docker.client.registry |
Richard Felkl | 4775790 | 2018-03-02 22:44:43 +0100 | [diff] [blame^] | 13 | sleep 120 |
Richard Felkl | d59c565 | 2018-02-08 13:14:05 +0100 | [diff] [blame] | 14 | salt-call -t 5 --retcode-passthrough --no-color state.sls linux.network |
| 15 | salt-call -t 5 --retcode-passthrough --no-color state.sls nginx |