blob: aa74df12c2b9ab38c1a57ed9766fed81aae9c39f [file] [log] [blame]
Oleksii Butenkoade9c6c2018-03-05 15:16:40 +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
Oleksii Butenkoade9c6c2018-03-05 15:16:40 +02004# Other salt model repository parameters see in shared-salt.yaml
5{% set LAB_CONFIG_NAME = 'cookied-bm-mcp-ovs-dpdk' %}
6# Name of the context file (without extension, that is fixed .yaml) used to render the Environment model
7{% set ENVIRONMENT_MODEL_INVENTORY_NAME = os_env('ENVIRONMENT_MODEL_INVENTORY_NAME','cookied-bm-mcp-ovs-dpdk') %}
8# Path to the context files used to render Cluster and Environment models
9{%- set CLUSTER_CONTEXT_NAME = 'salt-context-cookiecutter-openstack_ovs_dpdk.yaml' %}
obutenkoa87bca92018-12-20 15:25:57 +020010{%- set ENVIRONMENT_CONTEXT_NAMES = ['salt-context-vcp-environment.yaml', 'salt-context-environment.yaml','alt-context-cookiecutter-openstack_ovs_dpdk.yaml'] %}
Oleksii Butenkoade9c6c2018-03-05 15:16:40 +020011{%- set CONTROL_VLAN = os_env('CONTROL_VLAN', '2416') %}
12{%- set TENANT_VLAN = os_env('TENANT_VLAN', '2417') %}
Dennis Dmitrievd9168b52018-12-19 18:53:52 +020013
Oleksii Butenkoade9c6c2018-03-05 15:16:40 +020014{% import 'shared-salt.yaml' as SHARED with context %}
15
Oleksii Butenkof65a0042018-06-27 13:38:43 +030016{{ SHARED.MACRO_INSTALL_PACKAGES_ON_NODES(HOSTNAME_CFG01) }}
17
18{{ SHARED.MACRO_INSTALL_FORMULAS('\*') }}
19
Oleksii Butenkoade9c6c2018-03-05 15:16:40 +020020{{ SHARED.MACRO_GENERATE_COOKIECUTTER_MODEL(CONTROL_VLAN=CONTROL_VLAN, TENANT_VLAN=TENANT_VLAN) }}
21
22{{ SHARED.MACRO_GENERATE_AND_ENABLE_ENVIRONMENT_MODEL() }}
23
Oleksii Butenkoade9c6c2018-03-05 15:16:40 +020024- description: Temporary workaround for removing cinder-volume from CTL nodes
25 cmd: |
26 sed -i 's/\-\ system\.cinder\.volume\.single//g' /srv/salt/reclass/classes/cluster/{{ SHARED.CLUSTER_NAME }}/openstack/control.yml;
27 sed -i 's/\-\ system\.cinder\.volume\.notification\.messagingv2//g' /srv/salt/reclass/classes/cluster/{{ SHARED.CLUSTER_NAME }}/openstack/control.yml;
28 node_name: {{ HOSTNAME_CFG01 }}
29 retry: {count: 1, delay: 5}
30 skip_fail: true
31
Oleksii Butenkof65a0042018-06-27 13:38:43 +030032- description: Temporary WR for correct bridge name according to envoronment templates
33 cmd: |
34 sed -i 's/br\-ctl/br\_ctl/g' /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/infra/kvm.yml;
35 sed -i 's/br\-mgm/br\_mgm/g' /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/infra/kvm.yml;
36 sed -i 's/br\-ctl/br\_ctl/g' /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/openstack/gateway.yml;
37 salt '*' saltutil.refresh_pillar;
38 node_name: {{ HOSTNAME_CFG01 }}
39 retry: {count: 1, delay: 10}
40 skip_fail: false
41
Oleksii Butenkoade9c6c2018-03-05 15:16:40 +020042{{ SHARED.MACRO_GENERATE_INVENTORY(RERUN_SALTMASTER_STATE=true) }}
43