blob: 20b2fa6c419c2fb06ed555df09078546a20a5cd0 [file] [log] [blame]
Dennis Dmitriev67aea4a2018-03-14 14:20:20 +02001{% from 'cookied-mcp-pike-dpdk/underlay.yaml' import HOSTNAME_CFG01 with context %}
2{% from 'cookied-mcp-pike-dpdk/underlay.yaml' import HOSTNAME_CTL01 with context %}
3{% from 'cookied-mcp-pike-dpdk/underlay.yaml' import HOSTNAME_CTL02 with context %}
4{% from 'cookied-mcp-pike-dpdk/underlay.yaml' import HOSTNAME_CTL03 with context %}
Oleksii Butenko5cd0a162018-06-14 18:18:10 +03005{% from 'cookied-mcp-pike-dpdk/underlay.yaml' import HOSTNAME_GTW01 with context %}
Oleksii Butenko2e8e8ee2018-06-21 11:10:13 +03006{% from 'cookied-mcp-pike-dpdk/underlay.yaml' import LAB_CONFIG_NAME with context %}
7{% from 'cookied-mcp-pike-dpdk/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 %}
Oleksii Butenko2e8e8ee2018-06-21 11:10:13 +030010{% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME') %}
Dennis Dmitriev4034db02018-08-26 21:50:13 +030011
Oleksii Butenko5cd0a162018-06-14 18:18:10 +030012{% import 'shared-salt.yaml' as SHARED with context %}
Dennis Dmitriev4034db02018-08-26 21:50:13 +030013{% import 'shared-openstack.yaml' as SHARED_OPENSTACK with context %}
Oleksii Butenko5cd0a162018-06-14 18:18:10 +030014
Dennis Dmitriev67aea4a2018-03-14 14:20:20 +020015# Install OpenStack control services
16
sgudz62df2fc2018-10-09 12:26:19 +030017{{ SHARED_OPENSTACK.MACRO_INSTALL_KEYSTONE() }}
Dennis Dmitriev67aea4a2018-03-14 14:20:20 +020018
Dennis Dmitriev4034db02018-08-26 21:50:13 +030019{{ SHARED_OPENSTACK.MACRO_INSTALL_GLANCE() }}
Dennis Dmitriev67aea4a2018-03-14 14:20:20 +020020
Dennis Dmitriev4034db02018-08-26 21:50:13 +030021{{ SHARED_OPENSTACK.MACRO_INSTALL_NOVA() }}
Dennis Dmitriev67aea4a2018-03-14 14:20:20 +020022
Dennis Dmitriev4034db02018-08-26 21:50:13 +030023{{ SHARED_OPENSTACK.MACRO_INSTALL_CINDER() }}
Dennis Dmitriev67aea4a2018-03-14 14:20:20 +020024
Dennis Dmitriev4034db02018-08-26 21:50:13 +030025{{ SHARED_OPENSTACK.MACRO_INSTALL_NEUTRON() }}
Dennis Dmitriev67aea4a2018-03-14 14:20:20 +020026
Dennis Dmitriev4034db02018-08-26 21:50:13 +030027{{ SHARED_OPENSTACK.MACRO_INSTALL_HEAT() }}
Dennis Dmitriev67aea4a2018-03-14 14:20:20 +020028
29- description: Deploy horizon dashboard
30 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
31 -C 'I@horizon:server' state.sls horizon
32 node_name: {{ HOSTNAME_CFG01 }}
33 retry: {count: 1, delay: 5}
34 skip_fail: true
35
36- description: Deploy nginx proxy
37 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
38 -C 'I@nginx:server' state.sls nginx
39 node_name: {{ HOSTNAME_CFG01 }}
40 retry: {count: 1, delay: 5}
41 skip_fail: true
42
43
44# Install compute node
45
46- description: Apply formulas for compute node
47 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply
48 node_name: {{ HOSTNAME_CFG01 }}
49 retry: {count: 1, delay: 5}
50 skip_fail: true
51
52- description: Re-apply(as in doc) formulas for compute node
53 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply
54 node_name: {{ HOSTNAME_CFG01 }}
55 retry: {count: 1, delay: 5}
56 skip_fail: false
57
58- description: Check IP on computes
59 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' cmd.run
60 'ip a'
61 node_name: {{ HOSTNAME_CFG01 }}
62 retry: {count: 10, delay: 30}
63 skip_fail: false