blob: 0a4c7fcb5d11d9f05c271625fca21426c3651054 [file] [log] [blame]
Ivan Berezovskiyc46e7c02018-10-29 18:22:09 +04001#!/bin/bash -xe
2
Denis Egorenko96e8b062019-04-03 18:05:50 +04003MCP_VERSION=${MCP_VERSION:-nightly}
Ivan Berezovskiy7630eaf2018-12-17 16:33:14 +04004APT_MIRANTIS_SALT_REPO=${APT_MIRANTIS_SALT_REPO:-"http://mirror.mirantis.com/${MCP_VERSION}/salt-formulas/xenial xenial main"}
Ivan Berezovskiyc46e7c02018-10-29 18:22:09 +04005SALT_OPTS="-t 10 --retcode-passthrough --no-color"
6
7echo "deb [arch=amd64] ${APT_MIRANTIS_SALT_REPO}" > /etc/apt/sources.list.d/mcp_salt.list
8apt-get update
9apt-get install salt-formula* -y
10
Ivan Berezovskiy738ce822018-11-16 13:00:24 +040011salt-call ${SALT_OPTS} saltutil.clear_cache
12salt-call ${SALT_OPTS} saltutil.refresh_pillar
13salt-call ${SALT_OPTS} saltutil.sync_all
Ivan Berezovskiyc46e7c02018-10-29 18:22:09 +040014salt-call ${SALT_OPTS} reclass.validate_pillar
15
Denis Egorenko96e8b062019-04-03 18:05:50 +040016salt-call ${SALT_OPTS} state.sls linux.system.repo,linux.system.package,linux.system.user,linux.system.directory,linux.system.config,openssh
Ivan Berezovskiyc46e7c02018-10-29 18:22:09 +040017salt-call ${SALT_OPTS} state.sls linux.network
18salt-call ${SALT_OPTS} state.sls salt.minion.ca
19
20salt-call ${SALT_OPTS} state.sls salt
21salt-call ${SALT_OPTS} state.sls docker.host
Ivan Berezovskiye36406d2018-11-26 17:03:37 +040022
23sed -i "s/mcp_version:.*/mcp_version: ${MCP_VERSION}/g" /srv/salt/reclass/classes/cluster/try-mcp/overrides.yml
Ivan Berezovskiyc46e7c02018-10-29 18:22:09 +040024
Ivan Berezovskiy23035a22018-11-14 13:25:51 +040025docker pull "docker-prod-local.artifactory.mirantis.com/mirantis/cicd/jenkins:${MCP_VERSION}"
26docker pull "docker-prod-local.artifactory.mirantis.com/mirantis/cicd/jnlp-slave:${MCP_VERSION}"
27docker pull "docker-prod-local.artifactory.mirantis.com/mirantis/cicd/phpldapadmin:${MCP_VERSION}"
28docker pull "docker-prod-local.artifactory.mirantis.com/mirantis/model-generator/operations-api:${MCP_VERSION}"
29docker pull "docker-prod-local.artifactory.mirantis.com/mirantis/model-generator/operations-ui:${MCP_VERSION}"
Denis Egorenko88f1cf52019-05-24 11:04:01 +040030docker pull "docker-prod-local.artifactory.mirantis.com/mirantis/cicd/mysql:${MCP_VERSION}"
Denis Egorenkoa401f162019-05-27 17:41:00 +040031docker pull "docker-prod-local.artifactory.mirantis.com/mirantis/external/jboss/keycloak:4.5.0.Final"
32docker pull "docker-prod-local.artifactory.mirantis.com/mirantis/external/jboss/keycloak-proxy:3.4.2.Final"
33docker pull "docker-prod-local.artifactory.mirantis.com/mirantis/external/cockroachdb/cockroach:v2.1.0"
34docker pull "docker-prod-local.artifactory.mirantis.com/mirantis/external/atengler/cockroach-init/cockroach-init:v2.0.6"
Ivan Berezovskiyc46e7c02018-10-29 18:22:09 +040035echo "---------------------"
36docker images
37echo "---------------------"