blob: 59e85e344616f6bff77418a66f8d282071bc7a63 [file] [log] [blame]
Dennis Dmitriev67aea4a2018-03-14 14:20:20 +02001{% from 'cookied-mcp-pike-dvr/underlay.yaml' import HOSTNAME_CFG01 with context %}
2{% from 'cookied-mcp-pike-dvr/underlay.yaml' import HOSTNAME_CTL01 with context %}
3{% from 'cookied-mcp-pike-dvr/underlay.yaml' import HOSTNAME_CTL02 with context %}
4{% from 'cookied-mcp-pike-dvr/underlay.yaml' import HOSTNAME_CTL03 with context %}
5{% from 'cookied-mcp-pike-dvr/underlay.yaml' import HOSTNAME_GTW01 with context %}
Oleksii Butenko2e8e8ee2018-06-21 11:10:13 +03006{% from 'cookied-mcp-pike-dvr/underlay.yaml' import LAB_CONFIG_NAME with context %}
7{% from 'cookied-mcp-pike-dvr/underlay.yaml' import DOMAIN_NAME with context %}
Dennis Dmitriev67aea4a2018-03-14 14:20:20 +02008{% from 'shared-salt.yaml' import IPV4_NET_EXTERNAL_PREFIX with context %}
9{% from 'shared-salt.yaml' import IPV4_NET_TENANT_PREFIX with context %}
10{% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME') %}
11{% set OVERRIDE_POLICY = os_env('OVERRIDE_POLICY', '') %}
12
Oleksii Butenko5cd0a162018-06-14 18:18:10 +030013{% import 'shared-salt.yaml' as SHARED with context %}
Dennis Dmitriev4034db02018-08-26 21:50:13 +030014{% import 'shared-openstack.yaml' as SHARED_OPENSTACK with context %}
Oleksii Butenko5cd0a162018-06-14 18:18:10 +030015
Dennis Dmitriev67aea4a2018-03-14 14:20:20 +020016# Install OpenStack control services
17
18{%- if OVERRIDE_POLICY != '' %}
19- description: Upload policy override
20 upload:
21 local_path: {{ config.salt_deploy.templates_dir }}{{ LAB_CONFIG_NAME }}/
22 local_filename: overrides-policy.yml
23 remote_path: /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/openstack/
24 node_name: {{ HOSTNAME_CFG01 }}
25
26- description: Create custom cluster control class
27 cmd: echo -e "classes:\n- cluster.{{ LAB_CONFIG_NAME }}.openstack.control_orig\n$(cat /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/openstack/overrides-policy.yml)" > /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/openstack/overrides-policy.yml
28 node_name: {{ HOSTNAME_CFG01 }}
29
30- description: Rename control classes
31 cmd: mv /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/openstack/control.yml /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/openstack/control_orig.yml &&
32 ln -s /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/openstack/overrides-policy.yml /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/openstack/control.yml &&
33 salt --hard-crash --state-output=mixed --state-verbose=False '*' saltutil.sync_all &&
34 salt --hard-crash --state-output=mixed --state-verbose=False '*' saltutil.refresh_pillar
35 node_name: {{ HOSTNAME_CFG01 }}
36{%- endif %}
37
Oleksii Butenko7b0f3672018-10-17 09:38:33 +030038# Install OpenStack control services
39
sgudz62df2fc2018-10-09 12:26:19 +030040{{ SHARED_OPENSTACK.MACRO_INSTALL_KEYSTONE() }}
Dennis Dmitriev67aea4a2018-03-14 14:20:20 +020041
Dennis Dmitriev4034db02018-08-26 21:50:13 +030042{{ SHARED_OPENSTACK.MACRO_INSTALL_GLANCE() }}
Dennis Dmitriev67aea4a2018-03-14 14:20:20 +020043
Dennis Dmitriev4034db02018-08-26 21:50:13 +030044{{ SHARED_OPENSTACK.MACRO_INSTALL_NOVA() }}
Dennis Dmitriev67aea4a2018-03-14 14:20:20 +020045
Oleksii Butenko7b0f3672018-10-17 09:38:33 +030046{{ SHARED_OPENSTACK.MACRO_INSTALL_CINDER(INSTALL_VOLUME=true) }}
Dennis Dmitriev67aea4a2018-03-14 14:20:20 +020047
Dennis Dmitriev4034db02018-08-26 21:50:13 +030048{{ SHARED_OPENSTACK.MACRO_INSTALL_NEUTRON() }}
Dennis Dmitriev67aea4a2018-03-14 14:20:20 +020049
Dennis Dmitriev4034db02018-08-26 21:50:13 +030050{{ SHARED_OPENSTACK.MACRO_INSTALL_HEAT() }}
Dennis Dmitriev67aea4a2018-03-14 14:20:20 +020051
Oleksii Butenko7b0f3672018-10-17 09:38:33 +030052{{ SHARED_OPENSTACK.MACRO_INSTALL_DESIGNATE(INSTALL_BIND=true) }}
Dennis Dmitriev67aea4a2018-03-14 14:20:20 +020053
Oleksii Butenko7b0f3672018-10-17 09:38:33 +030054{{ SHARED_OPENSTACK.MACRO_INSTALL_HORIZON() }}
Dennis Dmitriev67aea4a2018-03-14 14:20:20 +020055
Oleksii Butenko7b0f3672018-10-17 09:38:33 +030056{{ SHARED_OPENSTACK.MACRO_INSTALL_COMPUTE(CELL_MAPPING=true) }}
Dennis Dmitriev67aea4a2018-03-14 14:20:20 +020057
Oleksii Butenko7b0f3672018-10-17 09:38:33 +030058{{ SHARED_OPENSTACK.MACRO_INSTALL_MANILA() }}
Tatyana Leontovich931892e2018-10-18 14:27:12 +030059
60{{ SHARED_OPENSTACK.MACRO_INSTALL_OCTAVIA_API() }}
61
62{{ SHARED_OPENSTACK.MACRO_INSTALL_OCTAVIA_MANAGER() }}
63