Dennis Dmitriev | 67aea4a | 2018-03-14 14:20:20 +0200 | [diff] [blame] | 1 | {% 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 Butenko | 2e8e8ee | 2018-06-21 11:10:13 +0300 | [diff] [blame] | 6 | {% 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 Dmitriev | 67aea4a | 2018-03-14 14:20:20 +0200 | [diff] [blame] | 8 | {% 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 Butenko | 5cd0a16 | 2018-06-14 18:18:10 +0300 | [diff] [blame] | 13 | {% import 'shared-salt.yaml' as SHARED with context %} |
Dennis Dmitriev | 4034db0 | 2018-08-26 21:50:13 +0300 | [diff] [blame] | 14 | {% import 'shared-openstack.yaml' as SHARED_OPENSTACK with context %} |
Oleksii Butenko | 5cd0a16 | 2018-06-14 18:18:10 +0300 | [diff] [blame] | 15 | |
Dennis Dmitriev | 67aea4a | 2018-03-14 14:20:20 +0200 | [diff] [blame] | 16 | # 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 Butenko | 7b0f367 | 2018-10-17 09:38:33 +0300 | [diff] [blame] | 38 | # Install OpenStack control services |
| 39 | |
sgudz | 62df2fc | 2018-10-09 12:26:19 +0300 | [diff] [blame] | 40 | {{ SHARED_OPENSTACK.MACRO_INSTALL_KEYSTONE() }} |
Dennis Dmitriev | 67aea4a | 2018-03-14 14:20:20 +0200 | [diff] [blame] | 41 | |
Dennis Dmitriev | 4034db0 | 2018-08-26 21:50:13 +0300 | [diff] [blame] | 42 | {{ SHARED_OPENSTACK.MACRO_INSTALL_GLANCE() }} |
Dennis Dmitriev | 67aea4a | 2018-03-14 14:20:20 +0200 | [diff] [blame] | 43 | |
Dennis Dmitriev | 4034db0 | 2018-08-26 21:50:13 +0300 | [diff] [blame] | 44 | {{ SHARED_OPENSTACK.MACRO_INSTALL_NOVA() }} |
Dennis Dmitriev | 67aea4a | 2018-03-14 14:20:20 +0200 | [diff] [blame] | 45 | |
Oleksii Butenko | 7b0f367 | 2018-10-17 09:38:33 +0300 | [diff] [blame] | 46 | {{ SHARED_OPENSTACK.MACRO_INSTALL_CINDER(INSTALL_VOLUME=true) }} |
Dennis Dmitriev | 67aea4a | 2018-03-14 14:20:20 +0200 | [diff] [blame] | 47 | |
Dennis Dmitriev | 4034db0 | 2018-08-26 21:50:13 +0300 | [diff] [blame] | 48 | {{ SHARED_OPENSTACK.MACRO_INSTALL_NEUTRON() }} |
Dennis Dmitriev | 67aea4a | 2018-03-14 14:20:20 +0200 | [diff] [blame] | 49 | |
Dennis Dmitriev | 4034db0 | 2018-08-26 21:50:13 +0300 | [diff] [blame] | 50 | {{ SHARED_OPENSTACK.MACRO_INSTALL_HEAT() }} |
Dennis Dmitriev | 67aea4a | 2018-03-14 14:20:20 +0200 | [diff] [blame] | 51 | |
Oleksii Butenko | 7b0f367 | 2018-10-17 09:38:33 +0300 | [diff] [blame] | 52 | {{ SHARED_OPENSTACK.MACRO_INSTALL_DESIGNATE(INSTALL_BIND=true) }} |
Dennis Dmitriev | 67aea4a | 2018-03-14 14:20:20 +0200 | [diff] [blame] | 53 | |
Oleksii Butenko | 7b0f367 | 2018-10-17 09:38:33 +0300 | [diff] [blame] | 54 | {{ SHARED_OPENSTACK.MACRO_INSTALL_HORIZON() }} |
Dennis Dmitriev | 67aea4a | 2018-03-14 14:20:20 +0200 | [diff] [blame] | 55 | |
Oleksii Butenko | 7b0f367 | 2018-10-17 09:38:33 +0300 | [diff] [blame] | 56 | {{ SHARED_OPENSTACK.MACRO_INSTALL_COMPUTE(CELL_MAPPING=true) }} |
Dennis Dmitriev | 67aea4a | 2018-03-14 14:20:20 +0200 | [diff] [blame] | 57 | |
Oleksii Butenko | 7b0f367 | 2018-10-17 09:38:33 +0300 | [diff] [blame] | 58 | {{ SHARED_OPENSTACK.MACRO_INSTALL_MANILA() }} |
Tatyana Leontovich | 931892e | 2018-10-18 14:27:12 +0300 | [diff] [blame] | 59 | |
| 60 | {{ SHARED_OPENSTACK.MACRO_INSTALL_OCTAVIA_API() }} |
| 61 | |
| 62 | {{ SHARED_OPENSTACK.MACRO_INSTALL_OCTAVIA_MANAGER() }} |
| 63 | |