blob: 51eea354f46969595f5e3dc0f32c0af0ca7c13cd [file] [log] [blame]
Ivan Berezovskiyc46e7c02018-10-29 18:22:09 +04001#!/bin/bash -xe
2
3FORMULA_VERSION=${FORMULA_VERSION:-2018.3.1}
4APT_MIRANTIS_SALT_REPO=${APT_MIRANTIS_SALT_REPO:-"http://apt.mirantis.com/xenial/ $FORMULA_VERSION salt"}
5SALT_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
11# Basic states
12salt-call saltutil.clear_cache
13salt-call saltutil.refresh_pillar
14salt-call saltutil.sync_all
15salt-call ${SALT_OPTS} reclass.validate_pillar
16
17salt-call ${SALT_OPTS} state.sls linux.system.repo,linux.system.package,linux.system.user,linux.system.directory,linux.system.config
18salt-call ${SALT_OPTS} state.sls linux.network
19salt-call ${SALT_OPTS} state.sls salt.minion.ca
20
21salt-call ${SALT_OPTS} state.sls salt
22salt-call ${SALT_OPTS} state.sls docker.host
23salt-call ${SALT_OPTS} saltutil.sync_all
24
25docker pull docker-prod-local.artifactory.mirantis.com/mirantis/cicd/mysql:2018.8.0
26docker pull docker-prod-local.artifactory.mirantis.com/mirantis/cicd/gerrit:2018.8.0
27docker 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
30docker pull quay.io/lotharkatt/jenkins-slave:latest
31docker pull docker-prod-local.artifactory.mirantis.com/mirantis/cicd/phpldapadmin:2018.8.0
32docker pull jboss/keycloak:4.5.0.Final
33docker pull jboss/keycloak-proxy:3.4.2.Final
34docker pull mirantis/python-operations-api:latest
35docker pull cockroachdb/cockroach:latest
36docker pull mirantis/operations-ui:latest
37echo "---------------------"
38docker images
39echo "---------------------"