Oleksii Butenko | 8be76f6 | 2018-03-30 13:35:26 +0300 | [diff] [blame] | 1 | {% from 'virtual-mcp-pike-dvr-ssl-barbican/underlay.yaml' import HOSTNAME_CFG01 with context %} |
| 2 | {% from 'virtual-mcp-pike-dvr-ssl-barbican/underlay.yaml' import HOSTNAME_CTL01 with context %} |
| 3 | {% from 'virtual-mcp-pike-dvr-ssl-barbican/underlay.yaml' import HOSTNAME_CTL02 with context %} |
| 4 | {% from 'virtual-mcp-pike-dvr-ssl-barbican/underlay.yaml' import HOSTNAME_CTL03 with context %} |
| 5 | {% from 'virtual-mcp-pike-dvr-ssl-barbican/underlay.yaml' import HOSTNAME_GTW01 with context %} |
Oleksii Butenko | 0a38bae | 2018-04-05 18:23:20 +0300 | [diff] [blame] | 6 | {% from 'virtual-mcp-pike-dvr-ssl-barbican/underlay.yaml' import LAB_CONFIG_NAME with context %} |
| 7 | {% from 'virtual-mcp-pike-dvr-ssl-barbican/underlay.yaml' import DOMAIN_NAME with context %} |
| 8 | |
Oleksii Butenko | 8be76f6 | 2018-03-30 13:35:26 +0300 | [diff] [blame] | 9 | {% from 'shared-salt.yaml' import IPV4_NET_EXTERNAL_PREFIX with context %} |
| 10 | {% from 'shared-salt.yaml' import IPV4_NET_TENANT_PREFIX with context %} |
Dennis Dmitriev | 4034db0 | 2018-08-26 21:50:13 +0300 | [diff] [blame] | 11 | |
Oleksii Butenko | 0a38bae | 2018-04-05 18:23:20 +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 | 0a38bae | 2018-04-05 18:23:20 +0300 | [diff] [blame] | 14 | |
Oleksii Butenko | 8be76f6 | 2018-03-30 13:35:26 +0300 | [diff] [blame] | 15 | # Install OpenStack control services |
| 16 | |
| 17 | - description: Nginx |
| 18 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 19 | -C 'I@nginx:server' state.sls salt.minion |
| 20 | node_name: {{ HOSTNAME_CFG01 }} |
| 21 | retry: {count: 1, delay: 5} |
| 22 | skip_fail: true |
| 23 | |
| 24 | - description: Deploy nginx proxy |
| 25 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 26 | -C 'I@nginx:server' state.sls nginx |
| 27 | node_name: {{ HOSTNAME_CFG01 }} |
| 28 | retry: {count: 1, delay: 5} |
| 29 | skip_fail: true |
| 30 | |
sgudz | 62df2fc | 2018-10-09 12:26:19 +0300 | [diff] [blame] | 31 | {{ SHARED_OPENSTACK.MACRO_INSTALL_KEYSTONE() }} |
Oleksii Butenko | 8be76f6 | 2018-03-30 13:35:26 +0300 | [diff] [blame] | 32 | |
Dennis Dmitriev | 4034db0 | 2018-08-26 21:50:13 +0300 | [diff] [blame] | 33 | {{ SHARED_OPENSTACK.MACRO_INSTALL_GLANCE() }} |
Oleksii Butenko | 8be76f6 | 2018-03-30 13:35:26 +0300 | [diff] [blame] | 34 | |
Dennis Dmitriev | 4034db0 | 2018-08-26 21:50:13 +0300 | [diff] [blame] | 35 | {{ SHARED_OPENSTACK.MACRO_INSTALL_NOVA() }} |
Oleksii Butenko | 8be76f6 | 2018-03-30 13:35:26 +0300 | [diff] [blame] | 36 | |
Dennis Dmitriev | 4034db0 | 2018-08-26 21:50:13 +0300 | [diff] [blame] | 37 | {{ SHARED_OPENSTACK.MACRO_INSTALL_CINDER() }} |
Oleksii Butenko | 8be76f6 | 2018-03-30 13:35:26 +0300 | [diff] [blame] | 38 | |
Dennis Dmitriev | 4034db0 | 2018-08-26 21:50:13 +0300 | [diff] [blame] | 39 | {{ SHARED_OPENSTACK.MACRO_INSTALL_NEUTRON() }} |
Oleksii Butenko | 8be76f6 | 2018-03-30 13:35:26 +0300 | [diff] [blame] | 40 | |
| 41 | # isntall designate |
| 42 | - description: Install powerdns |
| 43 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 44 | -C 'I@powerdns:server' state.sls powerdns.server |
| 45 | node_name: {{ HOSTNAME_CFG01 }} |
| 46 | retry: {count: 1, delay: 5} |
| 47 | skip_fail: false |
| 48 | |
| 49 | - description: Install designate |
| 50 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 51 | -C 'I@designate:server' state.sls designate -b 1 |
| 52 | node_name: {{ HOSTNAME_CFG01 }} |
| 53 | retry: {count: 5, delay: 10} |
| 54 | skip_fail: false |
| 55 | |
Dennis Dmitriev | 4034db0 | 2018-08-26 21:50:13 +0300 | [diff] [blame] | 56 | {{ SHARED_OPENSTACK.MACRO_INSTALL_HEAT() }} |
Oleksii Butenko | 8be76f6 | 2018-03-30 13:35:26 +0300 | [diff] [blame] | 57 | |
| 58 | - description: Deploy horizon dashboard |
| 59 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 60 | -C 'I@horizon:server' state.sls horizon |
| 61 | node_name: {{ HOSTNAME_CFG01 }} |
| 62 | retry: {count: 1, delay: 5} |
| 63 | skip_fail: false |
| 64 | |
| 65 | # Install DogTag server service |
| 66 | - description: Install DogTag server service |
| 67 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 68 | -C 'I@dogtag:server and *01*' state.sls dogtag.server |
| 69 | node_name: {{ HOSTNAME_CFG01 }} |
| 70 | retry: {count: 1, delay: 5} |
| 71 | skip_fail: false |
| 72 | |
| 73 | - description: Install DogTag server service |
| 74 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 75 | -C 'I@dogtag:server' state.sls dogtag.server |
| 76 | node_name: {{ HOSTNAME_CFG01 }} |
| 77 | retry: {count: 1, delay: 5} |
| 78 | skip_fail: false |
| 79 | |
| 80 | # Install Barbican server service |
| 81 | - description: Install Barbican server service |
| 82 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 83 | -C 'I@barbican:server and *01*' state.sls barbican.server |
| 84 | node_name: {{ HOSTNAME_CFG01 }} |
| 85 | retry: {count: 1, delay: 5} |
| 86 | skip_fail: false |
| 87 | |
| 88 | - description: Install Barbican server service |
| 89 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 90 | -C 'I@barbican:server' state.sls barbican.server |
| 91 | node_name: {{ HOSTNAME_CFG01 }} |
| 92 | retry: {count: 1, delay: 5} |
| 93 | skip_fail: false |
| 94 | |
| 95 | - description: Install Barbican client |
| 96 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 97 | -C 'I@barbican:client' state.sls barbican.client |
| 98 | node_name: {{ HOSTNAME_CFG01 }} |
| 99 | retry: {count: 1, delay: 5} |
| 100 | skip_fail: True |
| 101 | |
| 102 | # Install compute node |
| 103 | |
| 104 | - description: Apply formulas for compute node |
| 105 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply |
| 106 | node_name: {{ HOSTNAME_CFG01 }} |
| 107 | retry: {count: 1, delay: 5} |
| 108 | skip_fail: true |
| 109 | |
| 110 | - description: Re-apply(as in doc) formulas for compute node |
| 111 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply |
| 112 | node_name: {{ HOSTNAME_CFG01 }} |
| 113 | retry: {count: 1, delay: 5} |
| 114 | skip_fail: false |
| 115 | |
| 116 | - description: Check IP on computes |
| 117 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' cmd.run |
| 118 | 'ip a' |
| 119 | node_name: {{ HOSTNAME_CFG01 }} |
| 120 | retry: {count: 10, delay: 30} |
| 121 | skip_fail: false |
| 122 | |
sgudz | 3fd4454 | 2018-04-02 11:45:49 +0300 | [diff] [blame] | 123 | - description: Install manila-api on first node |
| 124 | cmd: | |
| 125 | salt -C 'I@manila:api and *01*' state.sls manila.api; |
| 126 | node_name: {{ HOSTNAME_CFG01 }} |
| 127 | retry: {count: 1, delay: 5} |
| 128 | skip_fail: false |
| 129 | |
| 130 | - description: Install manila-api on other nodes |
| 131 | cmd: | |
| 132 | salt -C 'I@manila:api and not *01*' state.sls manila.api; |
| 133 | node_name: {{ HOSTNAME_CFG01 }} |
| 134 | retry: {count: 1, delay: 5} |
| 135 | skip_fail: false |
| 136 | |
| 137 | - description: Install manila-scheduler |
| 138 | cmd: | |
| 139 | salt -C 'I@manila:scheduler' state.sls manila.scheduler; |
| 140 | node_name: {{ HOSTNAME_CFG01 }} |
| 141 | retry: {count: 1, delay: 5} |
| 142 | skip_fail: false |
| 143 | |
| 144 | - description: Install manila-share |
| 145 | cmd: | |
| 146 | salt -C 'I@manila:share' state.sls manila.share; |
| 147 | node_name: {{ HOSTNAME_CFG01 }} |
| 148 | retry: {count: 1, delay: 5} |
| 149 | skip_fail: false |
| 150 | |
Tatyana Leontovich | 3cc1c13 | 2018-04-03 00:41:17 +0300 | [diff] [blame] | 151 | - description: WR https://mirantis.jira.com/browse/PROD-19012 |
| 152 | cmd: | |
Tatyana Leontovich | 1618a2a | 2018-04-03 10:19:25 +0300 | [diff] [blame] | 153 | salt 'ctl*' cmd.run 'systemctl restart apache2' |
Tatyana Leontovich | 3cc1c13 | 2018-04-03 00:41:17 +0300 | [diff] [blame] | 154 | node_name: {{ HOSTNAME_CFG01 }} |
Oleksii Butenko | a947bc0 | 2018-05-22 11:40:48 +0300 | [diff] [blame] | 155 | retry: {count: 1, delay: 15} |
Tatyana Leontovich | 3cc1c13 | 2018-04-03 00:41:17 +0300 | [diff] [blame] | 156 | skip_fail: false |
| 157 | |
sgudz | 3fd4454 | 2018-04-02 11:45:49 +0300 | [diff] [blame] | 158 | - description: Check manila-services |
| 159 | cmd: | |
| 160 | salt 'ctl01*' cmd.run '. /root/keystonercv3; manila service-list' |
| 161 | node_name: {{ HOSTNAME_CFG01 }} |
Oleksii Butenko | 3deb90e | 2018-04-06 15:34:38 +0300 | [diff] [blame] | 162 | retry: {count: 3, delay: 5} |
sgudz | 3fd4454 | 2018-04-02 11:45:49 +0300 | [diff] [blame] | 163 | skip_fail: false |
| 164 | |
Maksym Shalamov | ae15a77 | 2018-07-20 13:13:29 +0300 | [diff] [blame] | 165 | - description: Create manila type |
| 166 | cmd: | |
| 167 | salt 'cfg01*' state.sls manila.client |
| 168 | node_name: {{ HOSTNAME_CFG01 }} |
| 169 | retry: {count: 1, delay: 5} |
| 170 | skip_fail: false |
| 171 | |
sgudz | 3fd4454 | 2018-04-02 11:45:49 +0300 | [diff] [blame] | 172 | - description: Create CIFS and NFS share and check it status |
| 173 | cmd: | |
| 174 | salt 'ctl01*' cmd.run '. /root/keystonercv3; manila create CIFS 1 --share-type=default'; |
| 175 | salt 'ctl01*' cmd.run '. /root/keystonercv3; manila create NFS 1 --share-type=default'; |
| 176 | sleep 5; |
| 177 | salt 'ctl01*' cmd.run '. /root/keystonercv3; manila list'; |
| 178 | node_name: {{ HOSTNAME_CFG01 }} |
Oleksii Butenko | a561a8a | 2018-05-08 15:12:26 +0300 | [diff] [blame] | 179 | retry: {count: 3, delay: 5} |
sgudz | 3fd4454 | 2018-04-02 11:45:49 +0300 | [diff] [blame] | 180 | skip_fail: false |
Oleksii Butenko | 5cd0a16 | 2018-06-14 18:18:10 +0300 | [diff] [blame] | 181 | |