Ivan Berezovskiy | c46e7c0 | 2018-10-29 18:22:09 +0400 | [diff] [blame] | 1 | #!/bin/bash -xe |
| 2 | |
Denis Egorenko | 96e8b06 | 2019-04-03 18:05:50 +0400 | [diff] [blame] | 3 | MCP_VERSION=${MCP_VERSION:-nightly} |
Ivan Berezovskiy | 7630eaf | 2018-12-17 16:33:14 +0400 | [diff] [blame] | 4 | APT_MIRANTIS_SALT_REPO=${APT_MIRANTIS_SALT_REPO:-"http://mirror.mirantis.com/${MCP_VERSION}/salt-formulas/xenial xenial main"} |
Ivan Berezovskiy | c46e7c0 | 2018-10-29 18:22:09 +0400 | [diff] [blame] | 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 | |
Ivan Berezovskiy | 738ce82 | 2018-11-16 13:00:24 +0400 | [diff] [blame] | 11 | salt-call ${SALT_OPTS} saltutil.clear_cache |
| 12 | salt-call ${SALT_OPTS} saltutil.refresh_pillar |
| 13 | salt-call ${SALT_OPTS} saltutil.sync_all |
Ivan Berezovskiy | c46e7c0 | 2018-10-29 18:22:09 +0400 | [diff] [blame] | 14 | salt-call ${SALT_OPTS} reclass.validate_pillar |
| 15 | |
Denis Egorenko | 96e8b06 | 2019-04-03 18:05:50 +0400 | [diff] [blame] | 16 | salt-call ${SALT_OPTS} state.sls linux.system.repo,linux.system.package,linux.system.user,linux.system.directory,linux.system.config,openssh |
Ivan Berezovskiy | c46e7c0 | 2018-10-29 18:22:09 +0400 | [diff] [blame] | 17 | salt-call ${SALT_OPTS} state.sls linux.network |
| 18 | salt-call ${SALT_OPTS} state.sls salt.minion.ca |
| 19 | |
| 20 | salt-call ${SALT_OPTS} state.sls salt |
| 21 | salt-call ${SALT_OPTS} state.sls docker.host |
Ivan Berezovskiy | e36406d | 2018-11-26 17:03:37 +0400 | [diff] [blame] | 22 | |
| 23 | sed -i "s/mcp_version:.*/mcp_version: ${MCP_VERSION}/g" /srv/salt/reclass/classes/cluster/try-mcp/overrides.yml |
Ivan Berezovskiy | c46e7c0 | 2018-10-29 18:22:09 +0400 | [diff] [blame] | 24 | |
Ivan Berezovskiy | 23035a2 | 2018-11-14 13:25:51 +0400 | [diff] [blame] | 25 | docker pull "docker-prod-local.artifactory.mirantis.com/mirantis/cicd/jenkins:${MCP_VERSION}" |
| 26 | docker pull "docker-prod-local.artifactory.mirantis.com/mirantis/cicd/jnlp-slave:${MCP_VERSION}" |
| 27 | docker pull "docker-prod-local.artifactory.mirantis.com/mirantis/cicd/phpldapadmin:${MCP_VERSION}" |
| 28 | docker pull "docker-prod-local.artifactory.mirantis.com/mirantis/model-generator/operations-api:${MCP_VERSION}" |
| 29 | docker pull "docker-prod-local.artifactory.mirantis.com/mirantis/model-generator/operations-ui:${MCP_VERSION}" |
Denis Egorenko | 88f1cf5 | 2019-05-24 11:04:01 +0400 | [diff] [blame] | 30 | docker pull "docker-prod-local.artifactory.mirantis.com/mirantis/cicd/mysql:${MCP_VERSION}" |
Denis Egorenko | a401f16 | 2019-05-27 17:41:00 +0400 | [diff] [blame] | 31 | docker pull "docker-prod-local.artifactory.mirantis.com/mirantis/external/jboss/keycloak:4.5.0.Final" |
| 32 | docker pull "docker-prod-local.artifactory.mirantis.com/mirantis/external/jboss/keycloak-proxy:3.4.2.Final" |
| 33 | docker pull "docker-prod-local.artifactory.mirantis.com/mirantis/external/cockroachdb/cockroach:v2.1.0" |
| 34 | docker pull "docker-prod-local.artifactory.mirantis.com/mirantis/external/atengler/cockroach-init/cockroach-init:v2.0.6" |
Ivan Berezovskiy | c46e7c0 | 2018-10-29 18:22:09 +0400 | [diff] [blame] | 35 | echo "---------------------" |
| 36 | docker images |
| 37 | echo "---------------------" |