Pavel Glazov | ca1de37 | 2018-08-21 15:38:00 +0400 | [diff] [blame] | 1 | {% from 'cookied-mcp-newton-ovs/underlay.yaml' import HOSTNAME_CFG01 with context %} |
| 2 | {% from 'cookied-mcp-newton-ovs/underlay.yaml' import HOSTNAME_CTL01 with context %} |
| 3 | {% from 'cookied-mcp-newton-ovs/underlay.yaml' import HOSTNAME_CTL02 with context %} |
| 4 | {% from 'cookied-mcp-newton-ovs/underlay.yaml' import HOSTNAME_CTL03 with context %} |
| 5 | {% from 'cookied-mcp-newton-ovs/underlay.yaml' import HOSTNAME_GTW01 with context %} |
| 6 | {% from 'shared-salt.yaml' import IPV4_NET_EXTERNAL_PREFIX with context %} |
| 7 | {% from 'shared-salt.yaml' import IPV4_NET_TENANT_PREFIX with context %} |
| 8 | |
| 9 | {% import 'shared-openstack.yaml' as SHARED_OPENSTACK with context %} |
Pavel Glazov | 78e6c59 | 2018-10-24 12:20:12 +0400 | [diff] [blame] | 10 | {% import 'shared-salt.yaml' as SHARED with context %} |
Pavel Glazov | ca1de37 | 2018-08-21 15:38:00 +0400 | [diff] [blame] | 11 | |
| 12 | # Deploy nginx before openstack services (PROD-22740) |
| 13 | - description: Deploy nginx proxy |
| 14 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 15 | -C 'I@nginx:server' state.sls nginx |
| 16 | node_name: {{ HOSTNAME_CFG01 }} |
| 17 | retry: {count: 1, delay: 5} |
| 18 | skip_fail: true |
| 19 | |
sgudz | 62df2fc | 2018-10-09 12:26:19 +0300 | [diff] [blame] | 20 | {{ SHARED_OPENSTACK.MACRO_INSTALL_KEYSTONE() }} |
Pavel Glazov | ca1de37 | 2018-08-21 15:38:00 +0400 | [diff] [blame] | 21 | |
| 22 | {{ SHARED_OPENSTACK.MACRO_INSTALL_GLANCE() }} |
| 23 | |
| 24 | {{ SHARED_OPENSTACK.MACRO_INSTALL_NOVA() }} |
| 25 | |
| 26 | {{ SHARED_OPENSTACK.MACRO_INSTALL_CINDER() }} |
| 27 | |
| 28 | # {{ SHARED_OPENSTACK.MACRO_INSTALL_NEUTRON() }} |
| 29 | |
| 30 | - description: Install neutron service on primary node |
| 31 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 32 | -C "I@neutron:server and *01*" state.sls neutron.server |
| 33 | node_name: {{ HOSTNAME_CFG01 }} |
| 34 | retry: {count: 1, delay: 5} |
| 35 | skip_fail: false |
| 36 | |
| 37 | - description: Install neutron service on other nodes |
| 38 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 39 | -C "I@neutron:server" state.sls neutron.server |
| 40 | node_name: {{ HOSTNAME_CFG01 }} |
| 41 | retry: {count: 1, delay: 5} |
| 42 | skip_fail: false |
| 43 | |
| 44 | - description: Install neutron on gtw node |
| 45 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 46 | -C 'I@neutron:gateway' state.sls neutron |
| 47 | node_name: {{ HOSTNAME_CFG01 }} |
| 48 | retry: {count: 1, delay: 5} |
| 49 | skip_fail: false |
| 50 | |
| 51 | # WORKAROUND PROD-20976 |
| 52 | - description: WORKAROUND PROD-20976 |
| 53 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 54 | -C 'I@neutron:server or I@neutron:gateway' cmd.run "sed -i |
| 55 | 's/#min_l3_agents_per_router = 2/min_l3_agents_per_router = 1/' |
| 56 | /etc/neutron/neutron.conf" |
| 57 | node_name: {{ HOSTNAME_CFG01 }} |
| 58 | retry: {count: 1, delay: 5} |
| 59 | skip_fail: false |
| 60 | |
| 61 | - description: Restart Neutron services |
| 62 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 63 | -C 'I@neutron:server or I@neutron:gateway' cmd.run 'systemctl restart |
| 64 | neutron*' |
| 65 | node_name: {{ HOSTNAME_CFG01 }} |
| 66 | retry: {count: 1, delay: 5} |
| 67 | skip_fail: false |
| 68 | |
| 69 | - description: Check neutron agent-list |
| 70 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 71 | -C 'I@keystone:server' cmd.run '. /root/keystonerc; neutron agent-list' |
| 72 | node_name: {{ HOSTNAME_CFG01 }} |
| 73 | retry: {count: 3, delay: 20} |
| 74 | skip_fail: false |
| 75 | |
| 76 | {{ SHARED_OPENSTACK.MACRO_INSTALL_HEAT() }} |
| 77 | |
Pavel Glazov | 9bf865d | 2018-12-13 17:22:01 +0400 | [diff] [blame^] | 78 | {{ SHARED_OPENSTACK.MACRO_INSTALL_DESIGNATE(INSTALL_POWERDNS=true) }} |
Pavel Glazov | ca1de37 | 2018-08-21 15:38:00 +0400 | [diff] [blame] | 79 | |
| 80 | {{ SHARED_OPENSTACK.MACRO_INSTALL_HORIZON() }} |
| 81 | |
Pavel Glazov | f3c5907 | 2018-12-13 14:27:01 +0400 | [diff] [blame] | 82 | {{ SHARED_OPENSTACK.MACRO_INSTALL_COMPUTE() }} |