blob: ebfa36600c5a6f58c208f349699308a2f976f45d [file] [log] [blame]
obutenkof009ed42018-11-12 14:50:51 +02001{% from 'cookied-mcp-pike-dvr-ssl-barbican/underlay.yaml' import HOSTNAME_CFG01 with context %}
2{% from 'cookied-mcp-pike-dvr-ssl-barbican/underlay.yaml' import HOSTNAME_CMP01 with context %}
3{% from 'cookied-mcp-pike-dvr-ssl-barbican/underlay.yaml' import HOSTNAME_CMP02 with context %}
4{% from 'cookied-mcp-pike-dvr-ssl-barbican/underlay.yaml' import HOSTNAME_GTW01 with context %}
5{% from 'cookied-mcp-pike-dvr-ssl-barbican/underlay.yaml' import LAB_CONFIG_NAME with context %}
6{% from 'cookied-mcp-pike-dvr-ssl-barbican/underlay.yaml' import DOMAIN_NAME with context %}
7
8{% set SALT_MODELS_REPOSITORY = os_env('SALT_MODELS_REPOSITORY','https://gerrit.mcp.mirantis.com/salt-models/mcp-virtual-lab') %}
9# Other salt model repository parameters see in shared-salt.yaml
10
11{% import 'shared-salt.yaml' as SHARED with context %}
12
13{{ SHARED.MACRO_INSTALL_SALT_MASTER() }}
14
15{{ SHARED.MACRO_CLONE_RECLASS_MODELS() }}
16
17- description: "Temp fix"
18 cmd: |
19 set -e;
Tatyana Leontovichbc6f3552018-12-19 15:49:29 +020020 apt-get install virtualenv -y;
obutenkof009ed42018-11-12 14:50:51 +020021 apt-get -y install python-virtualenv python-pip build-essential python-dev libssl-dev;
22 [[ -d /root/venv-reclass-tools ]] || virtualenv /root/venv-reclass-tools;
23 . /root/venv-reclass-tools/bin/activate;
24 pip install git+https://github.com/dis-xcom/reclass-tools;
25 reclass-tools add-key parameters._param.cluster_internal_protocol 'https' /srv/salt/reclass/classes/system/cinder/volume/single.yml;
26 node_name: {{ HOSTNAME_CFG01 }}
27 retry: {count: 1, delay: 5}
28 skip_fail: false
29
30{{ SHARED.MACRO_CONFIGURE_RECLASS(FORMULA_SERVICES='\*') }}
31
32{{ SHARED.MACRO_INSTALL_SALT_MINIONS() }}
33
34{{ SHARED.MACRO_RUN_SALT_MASTER_UNDERLAY_STATES() }}
35
36{{ SHARED.MACRO_GENERATE_INVENTORY() }}
37
38{{ SHARED.MACRO_NETWORKING_WORKAROUNDS() }}
39
40{{ SHARED.MACRO_BOOTSTRAP_ALL_MINIONS() }}
41
42{{SHARED.MACRO_CHECK_SALT_VERSION_SERVICES_ON_CFG()}}
43
44{{SHARED.MACRO_CHECK_SALT_VERSION_ON_NODES()}}