Dennis Dmitriev | ab83ea4 | 2017-05-12 16:52:45 +0300 | [diff] [blame] | 1 | {% from 'virtual-mcp-ocata-dvr/underlay.yaml' import HOSTNAME_CFG01 with context %} |
Tatyana Leontovich | 6238ba5 | 2017-06-22 19:31:56 +0300 | [diff] [blame] | 2 | {% from 'virtual-mcp-ocata-dvr/underlay.yaml' import HOSTNAME_CTL01 with context %} |
| 3 | {% from 'virtual-mcp-ocata-dvr/underlay.yaml' import HOSTNAME_CTL02 with context %} |
| 4 | {% from 'virtual-mcp-ocata-dvr/underlay.yaml' import HOSTNAME_CTL03 with context %} |
Tatyana Leontovich | 7c97e80 | 2017-07-19 17:08:39 +0300 | [diff] [blame] | 5 | {% from 'virtual-mcp-ocata-dvr/underlay.yaml' import HOSTNAME_GTW01 with context %} |
Sergii Golovatiuk | 50f9189 | 2017-08-04 18:11:06 +0200 | [diff] [blame] | 6 | {% from 'shared-salt.yaml' import IPV4_NET_EXTERNAL_PREFIX with context %} |
| 7 | {% from 'shared-salt.yaml' import IPV4_NET_TENANT_PREFIX with context %} |
Dmitry Tyzhnenko | 8f6a63e | 2017-09-05 15:37:23 +0300 | [diff] [blame] | 8 | {% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME') %} |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 9 | |
| 10 | # Install OpenStack control services |
| 11 | |
Dmitry Tyzhnenko | 8f6a63e | 2017-09-05 15:37:23 +0300 | [diff] [blame] | 12 | - description: Upload policy override |
| 13 | upload: |
| 14 | local_path: {{ config.salt_deploy.templates_dir }}{{ LAB_CONFIG_NAME }}/ |
| 15 | local_filename: overrides-policy.yml |
| 16 | remote_path: /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/openstack/ |
| 17 | node_name: {{ HOSTNAME_CFG01 }} |
| 18 | |
| 19 | - description: Create custom cluster control class |
| 20 | cmd: echo -e "classes:\n- cluster.{{ LAB_CONFIG_NAME }}.openstack.control_orig\n$(cat /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/openstack/overrides-policy.yml)" > /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/openstack/overrides-policy.yml |
| 21 | node_name: {{ HOSTNAME_CFG01 }} |
| 22 | |
| 23 | - description: Rename control classes |
| 24 | cmd: mv /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/openstack/control.yml /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/openstack/control_orig.yml && |
| 25 | ln -s /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/openstack/overrides-policy.yml /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/openstack/control.yml && |
| 26 | salt --hard-crash --state-output=mixed --state-verbose=False '*' saltutil.sync_all && |
| 27 | salt --hard-crash --state-output=mixed --state-verbose=False '*' saltutil.refresh_pillar |
| 28 | node_name: {{ HOSTNAME_CFG01 }} |
| 29 | |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 30 | - description: Install glance on all controllers |
| 31 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 32 | -C 'I@glance:server' state.sls glance -b 1 |
| 33 | node_name: {{ HOSTNAME_CFG01 }} |
| 34 | retry: {count: 1, delay: 5} |
| 35 | skip_fail: false |
| 36 | |
| 37 | - description: Install keystone service (note that different fernet keys are created on different nodes) |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 38 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 39 | -C 'I@keystone:server' state.sls keystone.server -b 1 |
| 40 | node_name: {{ HOSTNAME_CFG01 }} |
Tatyana Leontovich | d4f1fd3 | 2017-04-21 13:31:44 +0300 | [diff] [blame] | 41 | retry: {count: 2, delay: 15} |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 42 | skip_fail: false |
| 43 | |
Tatyana Leontovich | fa7ae4d | 2017-04-25 13:46:14 +0300 | [diff] [blame] | 44 | - description: Restart apache due to PROD-10477 |
| 45 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' cmd.run "systemctl restart apache2" |
| 46 | node_name: {{ HOSTNAME_CFG01 }} |
| 47 | retry: {count: 1, delay: 15} |
| 48 | skip_fail: false |
| 49 | |
| 50 | - description: Check apache status to PROD-10477 |
| 51 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' cmd.run "systemctl status apache2" |
| 52 | node_name: {{ HOSTNAME_CFG01 }} |
| 53 | retry: {count: 1, delay: 15} |
| 54 | skip_fail: false |
| 55 | |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 56 | - description: Mount glusterfs.client volumes (resuires created 'keystone' and 'glusterfs' system users) |
| 57 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 58 | -C 'I@glance:server' state.sls glusterfs.client |
| 59 | node_name: {{ HOSTNAME_CFG01 }} |
| 60 | retry: {count: 1, delay: 5} |
| 61 | skip_fail: false |
| 62 | |
| 63 | - description: Update fernet keys for keystone server on the mounted glusterfs volume |
| 64 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 65 | -C 'I@keystone:server' state.sls keystone.server -b 1 |
| 66 | node_name: {{ HOSTNAME_CFG01 }} |
| 67 | retry: {count: 1, delay: 5} |
| 68 | skip_fail: false |
| 69 | |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 70 | - description: Populate keystone services/tenants/admins |
| 71 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 72 | -C 'I@keystone:client' state.sls keystone.client |
| 73 | node_name: {{ HOSTNAME_CFG01 }} |
| 74 | retry: {count: 1, delay: 5} |
| 75 | skip_fail: false |
| 76 | |
| 77 | - description: Check keystone service-list |
| 78 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
Tatyana Leontovich | b8b02d8 | 2017-04-21 14:07:33 +0300 | [diff] [blame] | 79 | -C 'I@keystone:server' cmd.run '. /root/keystonerc; openstack service list' |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 80 | node_name: {{ HOSTNAME_CFG01 }} |
| 81 | retry: {count: 1, delay: 5} |
| 82 | skip_fail: false |
| 83 | |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 84 | - description: Check glance image-list |
| 85 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 86 | -C 'I@keystone:server' cmd.run '. /root/keystonerc; glance image-list' |
| 87 | node_name: {{ HOSTNAME_CFG01 }} |
| 88 | retry: {count: 1, delay: 5} |
| 89 | skip_fail: false |
| 90 | |
| 91 | |
| 92 | - description: Install nova on all controllers |
| 93 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 94 | -C 'I@nova:controller' state.sls nova -b 1 |
| 95 | node_name: {{ HOSTNAME_CFG01 }} |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 96 | retry: {count: 2, delay: 5} |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 97 | skip_fail: false |
| 98 | |
| 99 | - description: Check nova service-list |
| 100 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
Tatyana Leontovich | 902f1b4 | 2017-07-27 17:00:19 +0300 | [diff] [blame] | 101 | -C 'I@keystone:server' cmd.run '. /root/keystonerc; nova --debug service-list' |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 102 | node_name: {{ HOSTNAME_CFG01 }} |
Tatyana Leontovich | 902f1b4 | 2017-07-27 17:00:19 +0300 | [diff] [blame] | 103 | retry: {count: 3, delay: 5} |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 104 | skip_fail: false |
| 105 | |
| 106 | |
| 107 | - description: Install cinder |
| 108 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 109 | -C 'I@cinder:controller' state.sls cinder -b 1 |
| 110 | node_name: {{ HOSTNAME_CFG01 }} |
| 111 | retry: {count: 1, delay: 5} |
| 112 | skip_fail: false |
| 113 | |
| 114 | - description: Check cinder list |
| 115 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 116 | -C 'I@keystone:server' cmd.run '. /root/keystonerc; cinder list' |
| 117 | node_name: {{ HOSTNAME_CFG01 }} |
| 118 | retry: {count: 1, delay: 5} |
| 119 | skip_fail: false |
| 120 | |
| 121 | |
| 122 | - description: Install neutron service |
| 123 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 124 | -C 'I@neutron:server' state.sls neutron -b 1 |
| 125 | node_name: {{ HOSTNAME_CFG01 }} |
| 126 | retry: {count: 1, delay: 5} |
| 127 | skip_fail: false |
| 128 | |
| 129 | - description: Install neutron on gtw node |
| 130 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 131 | -C 'I@neutron:gateway' state.sls neutron |
| 132 | node_name: {{ HOSTNAME_CFG01 }} |
| 133 | retry: {count: 1, delay: 5} |
| 134 | skip_fail: false |
| 135 | |
Tatyana Leontovich | c33be1f | 2017-07-19 17:38:30 +0300 | [diff] [blame] | 136 | # isntall designate |
| 137 | - description: Install powerdns |
| 138 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
Tatyana Leontovich | 8d815a8 | 2017-10-05 16:01:26 +0300 | [diff] [blame] | 139 | -C 'I@powerdns:server' state.sls powerdns.server |
Tatyana Leontovich | c33be1f | 2017-07-19 17:38:30 +0300 | [diff] [blame] | 140 | node_name: {{ HOSTNAME_CFG01 }} |
| 141 | retry: {count: 1, delay: 5} |
| 142 | skip_fail: false |
| 143 | |
| 144 | - description: Install designate |
| 145 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 146 | -C 'I@designate:server' state.sls designate -b 1 |
| 147 | node_name: {{ HOSTNAME_CFG01 }} |
| 148 | retry: {count: 5, delay: 10} |
| 149 | skip_fail: false |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 150 | |
| 151 | - description: Check neutron agent-list |
| 152 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 153 | -C 'I@keystone:server' cmd.run '. /root/keystonerc; neutron agent-list' |
| 154 | node_name: {{ HOSTNAME_CFG01 }} |
| 155 | retry: {count: 1, delay: 5} |
| 156 | skip_fail: false |
| 157 | |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 158 | - description: Install heat service |
| 159 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 160 | -C 'I@heat:server' state.sls heat -b 1 |
| 161 | node_name: {{ HOSTNAME_CFG01 }} |
| 162 | retry: {count: 1, delay: 5} |
| 163 | skip_fail: false |
| 164 | |
| 165 | - description: Check heat service |
| 166 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
Igor Yozhikov | 8ec6d2f | 2017-05-23 16:17:29 +0300 | [diff] [blame] | 167 | -C 'I@keystone:server' cmd.run '. /root/keystonerc; openstack orchestration resource type list' |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 168 | node_name: {{ HOSTNAME_CFG01 }} |
Igor Yozhikov | 8ec6d2f | 2017-05-23 16:17:29 +0300 | [diff] [blame] | 169 | retry: {count: 5, delay: 10} |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 170 | skip_fail: false |
| 171 | |
| 172 | |
| 173 | - description: Deploy horizon dashboard |
| 174 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 175 | -C 'I@horizon:server' state.sls horizon |
| 176 | node_name: {{ HOSTNAME_CFG01 }} |
| 177 | retry: {count: 1, delay: 5} |
| 178 | skip_fail: true |
| 179 | |
| 180 | - description: Deploy nginx proxy |
| 181 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 182 | -C 'I@nginx:server' state.sls nginx |
| 183 | node_name: {{ HOSTNAME_CFG01 }} |
| 184 | retry: {count: 1, delay: 5} |
| 185 | skip_fail: true |
| 186 | |
| 187 | |
| 188 | # Install compute node |
| 189 | |
| 190 | - description: Apply formulas for compute node |
| 191 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply |
| 192 | node_name: {{ HOSTNAME_CFG01 }} |
| 193 | retry: {count: 1, delay: 5} |
| 194 | skip_fail: true |
| 195 | |
| 196 | - description: Re-apply(as in doc) formulas for compute node |
| 197 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply |
| 198 | node_name: {{ HOSTNAME_CFG01 }} |
| 199 | retry: {count: 1, delay: 5} |
| 200 | skip_fail: true |
| 201 | |
| 202 | - description: Check IP on computes |
| 203 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' cmd.run |
| 204 | 'ip a' |
| 205 | node_name: {{ HOSTNAME_CFG01 }} |
| 206 | retry: {count: 10, delay: 30} |
| 207 | skip_fail: false |
Oleksandr Ivashchenko | a95a72b | 2017-06-06 15:55:59 +0300 | [diff] [blame] | 208 | |
| 209 | |
| 210 | # Upload cirros image |
| 211 | |
| 212 | - description: Upload cirros image on ctl01 |
| 213 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 214 | 'wget http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-i386-disk.img' |
| 215 | node_name: {{ HOSTNAME_CFG01 }} |
| 216 | retry: {count: 2, delay: 30} |
| 217 | skip_fail: false |
| 218 | |
| 219 | - description: Register image in glance |
| 220 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 221 | '. /root/keystonercv3; glance image-create --name cirros --visibility public --disk-format qcow2 --container-format bare --progress < /root/cirros-0.3.4-i386-disk.img' |
| 222 | node_name: {{ HOSTNAME_CFG01 }} |
| 223 | retry: {count: 1, delay: 30} |
| 224 | skip_fail: false |
| 225 | |
| 226 | - description: Create net04_external |
| 227 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
Tatyana Leontovich | 674abf8 | 2017-07-20 15:44:15 +0300 | [diff] [blame] | 228 | '. /root/keystonercv3; neutron net-create net04_ext --router:external True --provider:physical_network physnet1 --provider:network_type flat' |
Oleksandr Ivashchenko | a95a72b | 2017-06-06 15:55:59 +0300 | [diff] [blame] | 229 | node_name: {{ HOSTNAME_CFG01 }} |
| 230 | retry: {count: 1, delay: 30} |
| 231 | skip_fail: false |
| 232 | |
| 233 | - description: Create subnet_external |
| 234 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 235 | '. /root/keystonercv3; neutron subnet-create net04_ext {{ IPV4_NET_EXTERNAL_PREFIX }}.0/24 --name net04_ext__subnet --disable-dhcp --allocation-pool start={{ IPV4_NET_EXTERNAL_PREFIX }}.150,end={{ IPV4_NET_EXTERNAL_PREFIX }}.180 --gateway {{ IPV4_NET_EXTERNAL_PREFIX }}.1' |
| 236 | node_name: {{ HOSTNAME_CFG01 }} |
| 237 | retry: {count: 1, delay: 30} |
| 238 | skip_fail: false |
| 239 | |
| 240 | - description: Create net04 |
| 241 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 242 | '. /root/keystonercv3; neutron net-create net04' |
| 243 | node_name: {{ HOSTNAME_CFG01 }} |
| 244 | retry: {count: 1, delay: 30} |
| 245 | skip_fail: false |
| 246 | |
| 247 | - description: Create subnet_net04 |
| 248 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 249 | '. /root/keystonercv3; neutron subnet-create net04 {{ IPV4_NET_TENANT_PREFIX }}.0/24 --name net04__subnet --allocation-pool start={{ IPV4_NET_TENANT_PREFIX }}.120,end={{ IPV4_NET_TENANT_PREFIX }}.240' |
| 250 | node_name: {{ HOSTNAME_CFG01 }} |
| 251 | retry: {count: 1, delay: 30} |
| 252 | skip_fail: false |
| 253 | |
| 254 | - description: Create router |
| 255 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 256 | '. /root/keystonercv3; neutron router-create net04_router01' |
| 257 | node_name: {{ HOSTNAME_CFG01 }} |
| 258 | retry: {count: 1, delay: 30} |
| 259 | skip_fail: false |
| 260 | |
| 261 | - description: Set geteway |
| 262 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 263 | '. /root/keystonercv3; neutron router-gateway-set net04_router01 net04_ext' |
| 264 | node_name: {{ HOSTNAME_CFG01 }} |
| 265 | retry: {count: 1, delay: 30} |
| 266 | skip_fail: false |
| 267 | |
| 268 | - description: Add interface |
| 269 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 270 | '. /root/keystonercv3; neutron router-interface-add net04_router01 net04__subnet' |
| 271 | node_name: {{ HOSTNAME_CFG01 }} |
| 272 | retry: {count: 1, delay: 30} |
| 273 | skip_fail: false |
| 274 | |
| 275 | - description: Allow all tcp |
| 276 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 277 | '. /root/keystonercv3; nova secgroup-add-rule default tcp 1 65535 0.0.0.0/0' |
| 278 | node_name: {{ HOSTNAME_CFG01 }} |
| 279 | retry: {count: 1, delay: 30} |
| 280 | skip_fail: false |
| 281 | |
| 282 | - description: Allow all icmp |
| 283 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 284 | '. /root/keystonercv3; nova secgroup-add-rule default icmp -1 -1 0.0.0.0/0' |
| 285 | node_name: {{ HOSTNAME_CFG01 }} |
| 286 | retry: {count: 1, delay: 30} |
| 287 | skip_fail: false |
| 288 | |
Tatyana Leontovich | fa31b39 | 2017-07-24 18:37:41 +0300 | [diff] [blame] | 289 | - description: sync time |
| 290 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False '*' cmd.run |
| 291 | 'service ntp stop; ntpd -gq; service ntp start' |
| 292 | node_name: {{ HOSTNAME_CFG01 }} |
| 293 | retry: {count: 1, delay: 30} |
| 294 | skip_fail: false |
| 295 | |
Tatyana Leontovich | fa31b39 | 2017-07-24 18:37:41 +0300 | [diff] [blame] | 296 | # Configure cinder-volume salt-call PROD-13167 |
Oleksandr Ivashchenko | a95a72b | 2017-06-06 15:55:59 +0300 | [diff] [blame] | 297 | - description: Set disks 01 |
| 298 | cmd: salt-call cmd.run 'echo -e "nn\np\n\n\n\nw" | fdisk /dev/vdb' |
| 299 | node_name: {{ HOSTNAME_CTL01 }} |
| 300 | retry: {count: 1, delay: 30} |
| 301 | skip_fail: false |
| 302 | |
| 303 | - description: Set disks 02 |
| 304 | cmd: salt-call cmd.run 'echo -e "nn\np\n\n\n\nw" | fdisk /dev/vdb' |
| 305 | node_name: {{ HOSTNAME_CTL02 }} |
| 306 | retry: {count: 1, delay: 30} |
| 307 | skip_fail: false |
| 308 | |
| 309 | - description: Set disks 03 |
| 310 | cmd: salt-call cmd.run 'echo -e "nn\np\n\n\n\nw" | fdisk /dev/vdb' |
| 311 | node_name: {{ HOSTNAME_CTL03 }} |
| 312 | retry: {count: 1, delay: 30} |
| 313 | skip_fail: false |
| 314 | |
| 315 | - description: Create partitions 01 |
| 316 | cmd: salt-call cmd.run 'pvcreate /dev/vdb1' |
| 317 | node_name: {{ HOSTNAME_CTL01 }} |
| 318 | retry: {count: 1, delay: 30} |
| 319 | skip_fail: false |
| 320 | |
| 321 | - description: Create partitions 02 |
| 322 | cmd: salt-call cmd.run 'pvcreate /dev/vdb1' |
sgudz | 2e39339 | 2017-10-17 12:51:26 +0300 | [diff] [blame] | 323 | node_name: {{ HOSTNAME_CTL02 }} |
Oleksandr Ivashchenko | a95a72b | 2017-06-06 15:55:59 +0300 | [diff] [blame] | 324 | retry: {count: 1, delay: 30} |
| 325 | skip_fail: false |
| 326 | |
| 327 | - description: Create partitions 03 |
| 328 | cmd: salt-call cmd.run 'pvcreate /dev/vdb1' |
sgudz | 2e39339 | 2017-10-17 12:51:26 +0300 | [diff] [blame] | 329 | node_name: {{ HOSTNAME_CTL03 }} |
Oleksandr Ivashchenko | a95a72b | 2017-06-06 15:55:59 +0300 | [diff] [blame] | 330 | retry: {count: 1, delay: 30} |
Tatyana Leontovich | 7c97e80 | 2017-07-19 17:08:39 +0300 | [diff] [blame] | 331 | skip_fail: false |
| 332 | |
| 333 | - description: create volume_group |
| 334 | cmd: salt "ctl*" cmd.run 'vgcreate cinder-volumes /dev/vdb1' |
| 335 | node_name: {{ HOSTNAME_CFG01 }} |
| 336 | retry: {count: 1, delay: 30} |
| 337 | skip_fail: false |
| 338 | |
| 339 | - description: Install cinder-volume |
| 340 | cmd: salt 'ctl*' cmd.run 'apt-get install cinder-volume -y' |
| 341 | node_name: {{ HOSTNAME_CFG01 }} |
| 342 | retry: {count: 1, delay: 30} |
| 343 | skip_fail: false |
| 344 | |
| 345 | - description: Install crudini |
| 346 | cmd: salt "ctl*" cmd.run 'apt-get install crudini -y' |
| 347 | node_name: {{ HOSTNAME_CFG01 }} |
| 348 | retry: {count: 1, delay: 30} |
| 349 | skip_fail: false |
| 350 | |
| 351 | - description: Temporary WR set enabled backends value 01 |
| 352 | cmd: salt-call cmd.run 'crudini --verbose --set /etc/cinder/cinder.conf DEFAULT enabled_backends lvm' |
| 353 | node_name: {{ HOSTNAME_CTL01 }} |
| 354 | retry: {count: 1, delay: 30} |
| 355 | skip_fail: false |
| 356 | |
| 357 | - description: Temporary WR set enabled backends value 02 |
| 358 | cmd: salt-call cmd.run 'crudini --verbose --set /etc/cinder/cinder.conf DEFAULT enabled_backends lvm' |
| 359 | node_name: {{ HOSTNAME_CTL02 }} |
| 360 | retry: {count: 1, delay: 30} |
| 361 | skip_fail: false |
| 362 | |
| 363 | - description: Temporary WR set enabled backends value 03 |
| 364 | cmd: salt-call cmd.run 'crudini --verbose --set /etc/cinder/cinder.conf DEFAULT enabled_backends lvm' |
| 365 | node_name: {{ HOSTNAME_CTL03 }} |
| 366 | retry: {count: 1, delay: 30} |
| 367 | skip_fail: false |
| 368 | |
| 369 | - description: Install docker.io on gtw |
| 370 | cmd: salt-call cmd.run 'apt-get install docker.io -y' |
| 371 | node_name: {{ HOSTNAME_GTW01 }} |
| 372 | retry: {count: 1, delay: 30} |
| 373 | skip_fail: false |
| 374 | |
| 375 | - description: create rc file on cfg |
| 376 | cmd: scp ctl01:/root/keystonercv3 /root |
| 377 | node_name: {{ HOSTNAME_CFG01 }} |
| 378 | retry: {count: 1, delay: 30} |
| 379 | skip_fail: false |
| 380 | |
| 381 | - description: Copy rc file |
| 382 | cmd: scp /root/keystonercv3 gtw01:/root |
| 383 | node_name: {{ HOSTNAME_CFG01 }} |
| 384 | retry: {count: 1, delay: 30} |
| 385 | skip_fail: false |