Ivan Berezovskiy | c46e7c0 | 2018-10-29 18:22:09 +0400 | [diff] [blame^] | 1 | #!/bin/bash -xe |
| 2 | |
| 3 | FORMULA_VERSION=${FORMULA_VERSION:-2018.3.1} |
| 4 | APT_MIRANTIS_SALT_REPO=${APT_MIRANTIS_SALT_REPO:-"http://apt.mirantis.com/xenial/ $FORMULA_VERSION salt"} |
| 5 | SALT_OPTS="-t 10 --retcode-passthrough --no-color" |
| 6 | |
| 7 | echo "deb [arch=amd64] ${APT_MIRANTIS_SALT_REPO}" > /etc/apt/sources.list.d/mcp_salt.list |
| 8 | apt-get update |
| 9 | apt-get install salt-formula* -y |
| 10 | |
| 11 | # Basic states |
| 12 | salt-call saltutil.clear_cache |
| 13 | salt-call saltutil.refresh_pillar |
| 14 | salt-call saltutil.sync_all |
| 15 | salt-call ${SALT_OPTS} reclass.validate_pillar |
| 16 | |
| 17 | salt-call ${SALT_OPTS} state.sls linux.system.repo,linux.system.package,linux.system.user,linux.system.directory,linux.system.config |
| 18 | salt-call ${SALT_OPTS} state.sls linux.network |
| 19 | salt-call ${SALT_OPTS} state.sls salt.minion.ca |
| 20 | |
| 21 | salt-call ${SALT_OPTS} state.sls salt |
| 22 | salt-call ${SALT_OPTS} state.sls docker.host |
| 23 | salt-call ${SALT_OPTS} saltutil.sync_all |
| 24 | |
| 25 | docker pull docker-prod-local.artifactory.mirantis.com/mirantis/cicd/mysql:2018.8.0 |
| 26 | docker pull docker-prod-local.artifactory.mirantis.com/mirantis/cicd/gerrit:2018.8.0 |
| 27 | docker pull docker-prod-local.artifactory.mirantis.com/mirantis/cicd/jenkins:2018.8.0 |
| 28 | # FIXME: workaround for missing packages in jenkins slave image |
| 29 | #docker pull docker-prod-local.artifactory.mirantis.com/mirantis/cicd/jnlp-slave:2018.8.0 |
| 30 | docker pull quay.io/lotharkatt/jenkins-slave:latest |
| 31 | docker pull docker-prod-local.artifactory.mirantis.com/mirantis/cicd/phpldapadmin:2018.8.0 |
| 32 | docker pull jboss/keycloak:4.5.0.Final |
| 33 | docker pull jboss/keycloak-proxy:3.4.2.Final |
| 34 | docker pull mirantis/python-operations-api:latest |
| 35 | docker pull cockroachdb/cockroach:latest |
| 36 | docker pull mirantis/operations-ui:latest |
| 37 | echo "---------------------" |
| 38 | docker images |
| 39 | echo "---------------------" |