Oleksii Butenko | ade9c6c | 2018-03-05 15:16:40 +0200 | [diff] [blame] | 1 | {% from 'cookied-bm-mcp-ovs-dpdk/underlay.yaml' import HOSTNAME_CFG01 with context %} |
| 2 | {% from 'cookied-bm-mcp-ovs-dpdk/underlay.yaml' import HOSTNAME_CTL01 with context %} |
| 3 | {% from 'cookied-bm-mcp-ovs-dpdk/underlay.yaml' import HOSTNAME_CTL02 with context %} |
| 4 | {% from 'cookied-bm-mcp-ovs-dpdk/underlay.yaml' import HOSTNAME_CTL03 with context %} |
| 5 | {% from 'shared-salt.yaml' import IPV4_NET_EXTERNAL_PREFIX with context %} |
| 6 | {% from 'shared-salt.yaml' import IPV4_NET_TENANT_PREFIX with context %} |
Oleksii Butenko | f65a004 | 2018-06-27 13:38:43 +0300 | [diff] [blame] | 7 | |
Dennis Dmitriev | 4034db0 | 2018-08-26 21:50:13 +0300 | [diff] [blame] | 8 | {% import 'shared-salt.yaml' as SHARED with context %} |
| 9 | {% import 'shared-openstack.yaml' as SHARED_OPENSTACK with context %} |
Oleksii Butenko | ade9c6c | 2018-03-05 15:16:40 +0200 | [diff] [blame] | 10 | |
| 11 | # Install OpenStack control services |
| 12 | |
sgudz | 62df2fc | 2018-10-09 12:26:19 +0300 | [diff] [blame] | 13 | {{ SHARED_OPENSTACK.MACRO_INSTALL_KEYSTONE() }} |
Oleksii Butenko | ade9c6c | 2018-03-05 15:16:40 +0200 | [diff] [blame] | 14 | |
Dennis Dmitriev | 4034db0 | 2018-08-26 21:50:13 +0300 | [diff] [blame] | 15 | {{ SHARED_OPENSTACK.MACRO_INSTALL_GLANCE() }} |
Oleksii Butenko | ade9c6c | 2018-03-05 15:16:40 +0200 | [diff] [blame] | 16 | |
Dennis Dmitriev | 4034db0 | 2018-08-26 21:50:13 +0300 | [diff] [blame] | 17 | {{ SHARED_OPENSTACK.MACRO_INSTALL_NOVA() }} |
Oleksii Butenko | ade9c6c | 2018-03-05 15:16:40 +0200 | [diff] [blame] | 18 | |
Dennis Dmitriev | 4034db0 | 2018-08-26 21:50:13 +0300 | [diff] [blame] | 19 | {{ SHARED_OPENSTACK.MACRO_INSTALL_CINDER(INSTALL_VOLUME=true) }} |
Oleksii Butenko | ade9c6c | 2018-03-05 15:16:40 +0200 | [diff] [blame] | 20 | |
Dennis Dmitriev | 4034db0 | 2018-08-26 21:50:13 +0300 | [diff] [blame] | 21 | {{ SHARED_OPENSTACK.MACRO_INSTALL_NEUTRON() }} |
Oleksii Butenko | ade9c6c | 2018-03-05 15:16:40 +0200 | [diff] [blame] | 22 | |
Dennis Dmitriev | 4034db0 | 2018-08-26 21:50:13 +0300 | [diff] [blame] | 23 | {{ SHARED_OPENSTACK.MACRO_INSTALL_HEAT() }} |
Oleksii Butenko | ade9c6c | 2018-03-05 15:16:40 +0200 | [diff] [blame] | 24 | |
| 25 | - description: Deploy horizon dashboard |
| 26 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 27 | -C 'I@horizon:server' state.sls horizon |
| 28 | node_name: {{ HOSTNAME_CFG01 }} |
| 29 | retry: {count: 1, delay: 5} |
| 30 | skip_fail: true |
| 31 | |
| 32 | - description: Deploy nginx proxy |
| 33 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 34 | -C 'I@nginx:server' state.sls nginx |
| 35 | node_name: {{ HOSTNAME_CFG01 }} |
| 36 | retry: {count: 1, delay: 5} |
| 37 | skip_fail: true |
| 38 | |
| 39 | |
| 40 | # Install compute node |
| 41 | |
| 42 | - description: Apply formulas for compute node |
| 43 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply |
| 44 | node_name: {{ HOSTNAME_CFG01 }} |
| 45 | retry: {count: 1, delay: 5} |
| 46 | skip_fail: true |
| 47 | |
| 48 | - description: Re-apply(as in doc) formulas for compute node |
| 49 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply |
| 50 | node_name: {{ HOSTNAME_CFG01 }} |
| 51 | retry: {count: 1, delay: 5} |
| 52 | skip_fail: false |
| 53 | |
| 54 | - description: Check IP on computes |
| 55 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' cmd.run |
| 56 | 'ip a' |
| 57 | node_name: {{ HOSTNAME_CFG01 }} |
| 58 | retry: {count: 10, delay: 30} |
| 59 | skip_fail: false |
| 60 | |