blob: 9655ec0e89c47fb81884228ef4bb1cd0b5470f36 [file] [log] [blame]
Richard Felkld59c5652018-02-08 13:14:05 +01001#!/bin/bash -xe
azvyagintsev6d453852018-02-26 16:56:37 +02002
azvyagintsev41bc80d2018-07-12 13:46:56 +03003SALT_OPTS="-l debug -t 10 --retcode-passthrough --no-color"
4
azvyagintsev6d453852018-02-26 16:56:37 +02005echo "deb [arch=amd64] ${APT_MIRANTIS_SALT_REPO}" > /etc/apt/sources.list.d/mcp_salt.list
Richard Felkld59c5652018-02-08 13:14:05 +01006apt-get update
Richard Felkld59c5652018-02-08 13:14:05 +01007apt-get install salt-formula* -y
8salt-call saltutil.refresh_pillar
9salt-call saltutil.sync_all
azvyagintsev41bc80d2018-07-12 13:46:56 +030010
11salt-call ${SALT_OPTS} state.sls salt
12salt-call ${SALT_OPTS} state.sls linux.system.repo,linux.system.directory,linux.system.package
13salt-call ${SALT_OPTS} state.sls linux.system.file
14salt-call ${SALT_OPTS} state.sls docker.host
15salt-call ${SALT_OPTS} state.sls docker exclude=docker.client.registry
Richard Felkl47757902018-03-02 22:44:43 +010016sleep 120
azvyagintsev41bc80d2018-07-12 13:46:56 +030017salt-call ${SALT_OPTS} state.sls linux.network
18salt-call ${SALT_OPTS} state.sls nginx
19salt-call ${SALT_OPTS} state.sls maas.mirror