blob: f95cbf1cce5376eeadbd2a63746491e871bb29ee [file] [log] [blame]
Dennis Dmitriev85559962018-01-30 15:35:51 +02001{% from 'cookied-model-generator/underlay.yaml' import HOSTNAME_CFG01 with context %}
2{% from 'cookied-model-generator/underlay.yaml' import DOMAIN_NAME with context %}
3
4{% set LAB_CONFIG_NAME = 'cookied-bm-mcp-dvr-vxlan' %}
5# Name of the context file (without extension, that is fixed .yaml) used to render the Environment model
6{% set ENVIRONMENT_MODEL_INVENTORY_NAME = os_env('ENVIRONMENT_MODEL_INVENTORY_NAME','cookied-bm-mcp-dvr-vxlan') %}
7# Path to the context files used to render Cluster and Environment models
Oleksii Butenko336e4412018-05-21 14:59:27 +03008{% set CLUSTER_CONTEXT_NAME = 'salt-context-cookiecutter-openstack_ovs_dvr_vxlan.yaml' %}
9{% set ENVIRONMENT_CONTEXT_NAMES = ['salt-context-vcp-environment.yaml', 'salt-context-lab03-environment.yaml'] %}
Oleksii Butenko20947f22018-08-29 15:48:21 +030010{% set CONTROL_VLAN = os_env('CONTROL_VLAN', '2404') %}
Oleksii Butenko336e4412018-05-21 14:59:27 +030011{% set TENANT_VLAN = os_env('TENANT_VLAN', '2406') %}
Dennis Dmitrievd9168b52018-12-19 18:53:52 +020012
Dennis Dmitriev85559962018-01-30 15:35:51 +020013{% import 'shared-salt.yaml' as SHARED with context %}
14
Dennis Dmitriev2c9db8d2018-03-26 21:49:59 +030015{{ SHARED.MACRO_INSTALL_PACKAGES_ON_NODES(HOSTNAME_CFG01) }}
Oleksii Butenko336e4412018-05-21 14:59:27 +030016{{ SHARED.MACRO_INSTALL_FORMULAS('\*') }}
Tatyana Leontovich2e892752018-07-05 19:56:10 +030017
Dennis Dmitriev85559962018-01-30 15:35:51 +020018{{ SHARED.MACRO_GENERATE_COOKIECUTTER_MODEL(CONTROL_VLAN=CONTROL_VLAN, TENANT_VLAN=TENANT_VLAN) }}
19
20{{ SHARED.MACRO_GENERATE_AND_ENABLE_ENVIRONMENT_MODEL() }}
21
Dennis Dmitriev85559962018-01-30 15:35:51 +020022- description: Temporary workaround for removing cinder-volume from CTL nodes
23 cmd: |
Dennis Dmitrievcb77f022018-02-18 20:42:35 +020024 sed -i 's/\-\ system\.cinder\.volume\.single//g' /srv/salt/reclass/classes/cluster/{{ SHARED.CLUSTER_NAME }}/openstack/control.yml;
25 sed -i 's/\-\ system\.cinder\.volume\.notification\.messagingv2//g' /srv/salt/reclass/classes/cluster/{{ SHARED.CLUSTER_NAME }}/openstack/control.yml;
Dennis Dmitriev85559962018-01-30 15:35:51 +020026 node_name: {{ HOSTNAME_CFG01 }}
27 retry: {count: 1, delay: 5}
28 skip_fail: true
29
Oleksii Butenkoa6798412018-10-19 17:50:52 +030030- description: Temporary workaround for removing virtual gtw nodes
31 cmd: |
32 sed -i 's/\-\ system\.salt\.control\.sizes\.ovs\.compact//g' /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/infra/kvm.yml;
33 sed -i 's/\-\ system\.salt\.control\.placement\.ovs\.compact//g' /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/infra/kvm.yml;
34 node_name: {{ HOSTNAME_CFG01 }}
35 retry: {count: 1, delay: 5}
36 skip_fail: true
37
Oleksii Butenko336e4412018-05-21 14:59:27 +030038- description: Temporary WR for correct bridge name according to envoronment templates
39 cmd: |
40 sed -i 's/br\-ctl/br\_ctl/g' /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/infra/kvm.yml;
41 sed -i 's/br\-mgm/br\_mgm/g' /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/infra/kvm.yml;
42 sed -i 's/br\-ctl/br\_ctl/g' /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/openstack/gateway.yml;
43 salt '*' saltutil.refresh_pillar;
44 node_name: {{ HOSTNAME_CFG01 }}
45 retry: {count: 1, delay: 10}
46 skip_fail: false
Dennis Dmitriev85559962018-01-30 15:35:51 +020047
Oleksii Butenkoa6798412018-10-19 17:50:52 +030048- description: "WR for PROD-24311"
49 cmd: |
50 set -e;
51 . /root/venv-reclass-tools/bin/activate;
Dennis Dmitrieve15a4f42018-10-30 13:11:56 +020052 reclass-tools add-key parameters._param.salt_control_xenial_image 'http://images.mcp.mirantis.net/ubuntu-16-04-x64-mcp{{ SHARED.REPOSITORY_SUITE }}.qcow2' /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/infra/init.yml;
53 reclass-tools add-key parameters._param.salt_control_trusty_image 'http://images.mcp.mirantis.net/ubuntu-14-04-x64-mcp{{ SHARED.REPOSITORY_SUITE }}.qcow2' /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/infra/init.yml;
Oleksii Butenkoa6798412018-10-19 17:50:52 +030054 node_name: {{ HOSTNAME_CFG01 }}
55 retry: {count: 1, delay: 10}
56 skip_fail: false
57
Dennis Dmitriev85559962018-01-30 15:35:51 +020058{{ SHARED.MACRO_GENERATE_INVENTORY(RERUN_SALTMASTER_STATE=true) }}
Oleksii Butenko336e4412018-05-21 14:59:27 +030059