Dennis Dmitriev | 67aea4a | 2018-03-14 14:20:20 +0200 | [diff] [blame] | 1 | {% from 'cookied-mcp-pike-ovs/underlay.yaml' import HOSTNAME_CFG01 with context %} |
| 2 | {% from 'cookied-mcp-pike-ovs/underlay.yaml' import HOSTNAME_CTL01 with context %} |
| 3 | {% from 'cookied-mcp-pike-ovs/underlay.yaml' import HOSTNAME_CTL02 with context %} |
| 4 | {% from 'cookied-mcp-pike-ovs/underlay.yaml' import HOSTNAME_CTL03 with context %} |
| 5 | {% from 'cookied-mcp-pike-ovs/underlay.yaml' import HOSTNAME_GTW01 with context %} |
Oleksii Butenko | 2e8e8ee | 2018-06-21 11:10:13 +0300 | [diff] [blame] | 6 | {% from 'cookied-mcp-pike-ovs/underlay.yaml' import LAB_CONFIG_NAME with context %} |
| 7 | {% from 'cookied-mcp-pike-ovs/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 %} |
Oleksii Butenko | 2e8e8ee | 2018-06-21 11:10:13 +0300 | [diff] [blame] | 10 | {% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME') %} |
Dennis Dmitriev | 4034db0 | 2018-08-26 21:50:13 +0300 | [diff] [blame] | 11 | |
Oleksii Butenko | 5cd0a16 | 2018-06-14 18:18:10 +0300 | [diff] [blame] | 12 | {% import 'shared-salt.yaml' as SHARED with context %} |
Dennis Dmitriev | 4034db0 | 2018-08-26 21:50:13 +0300 | [diff] [blame] | 13 | {% import 'shared-openstack.yaml' as SHARED_OPENSTACK with context %} |
Oleksii Butenko | 5cd0a16 | 2018-06-14 18:18:10 +0300 | [diff] [blame] | 14 | |
Dennis Dmitriev | 67aea4a | 2018-03-14 14:20:20 +0200 | [diff] [blame] | 15 | # Install OpenStack control services |
| 16 | |
sgudz | 62df2fc | 2018-10-09 12:26:19 +0300 | [diff] [blame^] | 17 | {{ SHARED_OPENSTACK.MACRO_INSTALL_KEYSTONE() }} |
Dennis Dmitriev | 67aea4a | 2018-03-14 14:20:20 +0200 | [diff] [blame] | 18 | |
Dennis Dmitriev | 4034db0 | 2018-08-26 21:50:13 +0300 | [diff] [blame] | 19 | {{ SHARED_OPENSTACK.MACRO_INSTALL_GLANCE() }} |
Dennis Dmitriev | 67aea4a | 2018-03-14 14:20:20 +0200 | [diff] [blame] | 20 | |
Dennis Dmitriev | 4034db0 | 2018-08-26 21:50:13 +0300 | [diff] [blame] | 21 | {{ SHARED_OPENSTACK.MACRO_INSTALL_NOVA() }} |
Dennis Dmitriev | 67aea4a | 2018-03-14 14:20:20 +0200 | [diff] [blame] | 22 | |
Dennis Dmitriev | 4034db0 | 2018-08-26 21:50:13 +0300 | [diff] [blame] | 23 | {{ SHARED_OPENSTACK.MACRO_INSTALL_CINDER() }} |
Dennis Dmitriev | 67aea4a | 2018-03-14 14:20:20 +0200 | [diff] [blame] | 24 | |
Dennis Dmitriev | 4034db0 | 2018-08-26 21:50:13 +0300 | [diff] [blame] | 25 | {{ SHARED_OPENSTACK.MACRO_INSTALL_NEUTRON() }} |
Dennis Dmitriev | 67aea4a | 2018-03-14 14:20:20 +0200 | [diff] [blame] | 26 | |
| 27 | # isntall designate |
obutenko | 830e6f6 | 2018-07-03 16:37:13 +0300 | [diff] [blame] | 28 | #- description: Install bind |
| 29 | # cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 30 | # -C 'I@bind:server' state.sls bind |
| 31 | # node_name: {{ HOSTNAME_CFG01 }} |
| 32 | # retry: {count: 1, delay: 5} |
| 33 | # skip_fail: false |
Dennis Dmitriev | 67aea4a | 2018-03-14 14:20:20 +0200 | [diff] [blame] | 34 | |
obutenko | 830e6f6 | 2018-07-03 16:37:13 +0300 | [diff] [blame] | 35 | #- description: Install designate |
| 36 | # cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 37 | # -C 'I@designate:server' state.sls designate -b 1 |
| 38 | # node_name: {{ HOSTNAME_CFG01 }} |
| 39 | # retry: {count: 5, delay: 10} |
| 40 | # skip_fail: false |
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_HEAT() }} |
Dennis Dmitriev | 67aea4a | 2018-03-14 14:20:20 +0200 | [diff] [blame] | 43 | |
| 44 | - description: Deploy horizon dashboard |
| 45 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 46 | -C 'I@horizon:server' state.sls horizon |
| 47 | node_name: {{ HOSTNAME_CFG01 }} |
| 48 | retry: {count: 1, delay: 5} |
| 49 | skip_fail: true |
| 50 | |
| 51 | - description: Deploy nginx proxy |
| 52 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 53 | -C 'I@nginx:server' state.sls nginx |
| 54 | node_name: {{ HOSTNAME_CFG01 }} |
| 55 | retry: {count: 1, delay: 5} |
| 56 | skip_fail: true |
| 57 | |
| 58 | |
| 59 | # Install compute node |
| 60 | |
| 61 | - description: Apply formulas for compute node |
| 62 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply |
| 63 | node_name: {{ HOSTNAME_CFG01 }} |
| 64 | retry: {count: 1, delay: 5} |
| 65 | skip_fail: true |
| 66 | |
| 67 | - description: Re-apply(as in doc) formulas for compute node |
| 68 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply |
| 69 | node_name: {{ HOSTNAME_CFG01 }} |
| 70 | retry: {count: 1, delay: 5} |
| 71 | skip_fail: false |
| 72 | |
| 73 | - description: Check IP on computes |
| 74 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' cmd.run |
| 75 | 'ip a' |
| 76 | node_name: {{ HOSTNAME_CFG01 }} |
| 77 | retry: {count: 10, delay: 30} |
| 78 | skip_fail: false |