Tatyana Leontovich | d34f410 | 2018-04-03 17:49:24 +0300 | [diff] [blame] | 1 | {% from 'virtual-offline-pike-ovs-dpdk/underlay.yaml' import HOSTNAME_CFG01 with context %} |
| 2 | {% from 'virtual-offline-pike-ovs-dpdk/underlay.yaml' import HOSTNAME_CTL01 with context %} |
| 3 | {% from 'virtual-offline-pike-ovs-dpdk/underlay.yaml' import HOSTNAME_CTL02 with context %} |
| 4 | {% from 'virtual-offline-pike-ovs-dpdk/underlay.yaml' import HOSTNAME_CTL03 with context %} |
| 5 | {% from 'virtual-offline-pike-ovs-dpdk/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 %} |
Tatyana Leontovich | eae3205 | 2018-10-24 22:28:18 +0300 | [diff] [blame] | 8 | {% set REPOSITORY_SUITE = os_env('REPOSITORY_SUITE', 'proposed') %} |
Tatyana Leontovich | d34f410 | 2018-04-03 17:49:24 +0300 | [diff] [blame] | 9 | # Install OpenStack control services |
Tatyana Leontovich | 0eb5ca3 | 2018-07-13 22:05:17 +0300 | [diff] [blame] | 10 | {% set DOMAIN_NAME = os_env('DOMAIN_NAME', 'virtual-offline-pike-ovs-dpdk') %} |
Tatyana Leontovich | bb29d1d | 2018-06-19 13:23:04 +0300 | [diff] [blame] | 11 | {% import 'shared-backup-restore.yaml' as BACKUP with context %} |
Tatyana Leontovich | 0eb5ca3 | 2018-07-13 22:05:17 +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 %} |
Tatyana Leontovich | 0eb5ca3 | 2018-07-13 22:05:17 +0300 | [diff] [blame] | 14 | |
sgudz | 62df2fc | 2018-10-09 12:26:19 +0300 | [diff] [blame] | 15 | {{ SHARED_OPENSTACK.MACRO_INSTALL_KEYSTONE() }} |
Tatyana Leontovich | bb29d1d | 2018-06-19 13:23:04 +0300 | [diff] [blame] | 16 | |
Dennis Dmitriev | 4034db0 | 2018-08-26 21:50:13 +0300 | [diff] [blame] | 17 | {{ SHARED_OPENSTACK.MACRO_INSTALL_GLANCE() }} |
Tatyana Leontovich | d34f410 | 2018-04-03 17:49:24 +0300 | [diff] [blame] | 18 | |
Dennis Dmitriev | 4034db0 | 2018-08-26 21:50:13 +0300 | [diff] [blame] | 19 | {{ SHARED_OPENSTACK.MACRO_INSTALL_NOVA() }} |
Tatyana Leontovich | d34f410 | 2018-04-03 17:49:24 +0300 | [diff] [blame] | 20 | |
Dennis Dmitriev | 4034db0 | 2018-08-26 21:50:13 +0300 | [diff] [blame] | 21 | {{ SHARED_OPENSTACK.MACRO_INSTALL_CINDER() }} |
Tatyana Leontovich | d34f410 | 2018-04-03 17:49:24 +0300 | [diff] [blame] | 22 | |
Dennis Dmitriev | 4034db0 | 2018-08-26 21:50:13 +0300 | [diff] [blame] | 23 | {{ SHARED_OPENSTACK.MACRO_INSTALL_NEUTRON() }} |
Tatyana Leontovich | d34f410 | 2018-04-03 17:49:24 +0300 | [diff] [blame] | 24 | |
Tatyana Leontovich | 5fb5ea5 | 2018-07-27 19:35:36 +0300 | [diff] [blame] | 25 | # isntall designate |
| 26 | - description: Install powerdns |
| 27 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 28 | -C 'I@powerdns:server' state.sls powerdns.server |
| 29 | node_name: {{ HOSTNAME_CFG01 }} |
| 30 | retry: {count: 1, delay: 5} |
| 31 | skip_fail: false |
| 32 | |
| 33 | - description: Install designate |
| 34 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 35 | -C 'I@designate:server' state.sls designate -b 1 |
| 36 | node_name: {{ HOSTNAME_CFG01 }} |
| 37 | retry: {count: 5, delay: 10} |
| 38 | skip_fail: false |
| 39 | |
Dennis Dmitriev | 4034db0 | 2018-08-26 21:50:13 +0300 | [diff] [blame] | 40 | {{ SHARED_OPENSTACK.MACRO_INSTALL_HEAT() }} |
Tatyana Leontovich | d34f410 | 2018-04-03 17:49:24 +0300 | [diff] [blame] | 41 | |
Tatyana Leontovich | 5fb5ea5 | 2018-07-27 19:35:36 +0300 | [diff] [blame] | 42 | # Install Telemetry services (mdb nodes) |
| 43 | - description: Install redis service |
| 44 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@redis:cluster:role:master' state.sls redis && |
| 45 | salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@redis:server' state.sls redis |
| 46 | node_name: {{ HOSTNAME_CFG01 }} |
| 47 | retry: {count: 1, delay: 5} |
| 48 | skip_fail: false |
| 49 | |
| 50 | - description: Install gnocchi server |
| 51 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@gnocchi:server and *01*' state.sls gnocchi.server && |
| 52 | salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@gnocchi:server' state.sls gnocchi.server |
| 53 | node_name: {{ HOSTNAME_CFG01 }} |
| 54 | retry: {count: 1, delay: 5} |
| 55 | skip_fail: false |
| 56 | |
Dennis Dmitriev | 85145a6 | 2018-08-03 19:22:08 +0300 | [diff] [blame] | 57 | - description: Setup gnocchi client |
| 58 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@gnocchi:client and *01*' state.sls gnocchi.client && |
| 59 | salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@gnocchi:client' state.sls gnocchi.client |
| 60 | node_name: {{ HOSTNAME_CFG01 }} |
| 61 | retry: {count: 1, delay: 5} |
| 62 | skip_fail: false |
| 63 | |
Tatyana Leontovich | 5fb5ea5 | 2018-07-27 19:35:36 +0300 | [diff] [blame] | 64 | - description: Install panko server |
| 65 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@panko:server and *01*' state.sls panko && |
| 66 | salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@panko:server' state.sls panko |
| 67 | node_name: {{ HOSTNAME_CFG01 }} |
| 68 | retry: {count: 1, delay: 5} |
| 69 | skip_fail: false |
| 70 | |
| 71 | - description: Install ceilometer server on first node |
| 72 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@ceilometer:server and *01*' state.sls ceilometer |
| 73 | node_name: {{ HOSTNAME_CFG01 }} |
| 74 | retry: {count: 2, delay: 5} |
| 75 | skip_fail: false |
| 76 | |
| 77 | - description: Install ceilometer server on other nodes |
| 78 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@ceilometer:server' state.sls ceilometer |
| 79 | node_name: {{ HOSTNAME_CFG01 }} |
| 80 | retry: {count: 2, delay: 5} |
| 81 | skip_fail: false |
| 82 | |
| 83 | - description: Install aodh server |
| 84 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@aodh:server and *01*' state.sls aodh && |
| 85 | salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@aodh:server' state.sls aodh |
| 86 | node_name: {{ HOSTNAME_CFG01 }} |
| 87 | retry: {count: 1, delay: 5} |
| 88 | skip_fail: false |
Tatyana Leontovich | d34f410 | 2018-04-03 17:49:24 +0300 | [diff] [blame] | 89 | |
| 90 | - description: Deploy horizon dashboard |
| 91 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 92 | -C 'I@horizon:server' state.sls horizon |
| 93 | node_name: {{ HOSTNAME_CFG01 }} |
| 94 | retry: {count: 1, delay: 5} |
| 95 | skip_fail: true |
| 96 | |
| 97 | - description: Deploy nginx proxy |
| 98 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 99 | -C 'I@nginx:server' state.sls nginx |
| 100 | node_name: {{ HOSTNAME_CFG01 }} |
| 101 | retry: {count: 1, delay: 5} |
| 102 | skip_fail: true |
| 103 | |
| 104 | |
| 105 | # Install compute node |
| 106 | |
| 107 | - description: Apply formulas for compute node |
| 108 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply |
| 109 | node_name: {{ HOSTNAME_CFG01 }} |
| 110 | retry: {count: 1, delay: 5} |
| 111 | skip_fail: true |
| 112 | |
| 113 | - description: Re-apply(as in doc) formulas for compute node |
| 114 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply |
| 115 | node_name: {{ HOSTNAME_CFG01 }} |
| 116 | retry: {count: 1, delay: 5} |
| 117 | skip_fail: false |
| 118 | |
| 119 | - description: Check IP on computes |
| 120 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' cmd.run |
| 121 | 'ip a' |
| 122 | node_name: {{ HOSTNAME_CFG01 }} |
| 123 | retry: {count: 10, delay: 30} |
| 124 | skip_fail: false |
| 125 | |
Tatyana Leontovich | d34f410 | 2018-04-03 17:49:24 +0300 | [diff] [blame] | 126 | - description: sync time |
| 127 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False '*' cmd.run |
| 128 | 'service ntp stop; ntpd -gq; service ntp start' |
| 129 | node_name: {{ HOSTNAME_CFG01 }} |
| 130 | retry: {count: 1, delay: 30} |
| 131 | skip_fail: false |
| 132 | |
Tatyana Leontovich | e1d1619 | 2018-07-18 15:07:51 +0300 | [diff] [blame] | 133 | {{ BACKUP.MACRO_WR_NGINX_MASTER() }} |
Tatyana Leontovich | bb29d1d | 2018-06-19 13:23:04 +0300 | [diff] [blame] | 134 | {{ BACKUP.MACRO_BACKUP_BACKUPNINJA() }} |
sgudz | 62df2fc | 2018-10-09 12:26:19 +0300 | [diff] [blame] | 135 | {{ BACKUP.MACRO_BACKUP_XTRABACKUP() }} |