blob: d3586a14a903094aaa79766924e239d29a42af71 [file] [log] [blame]
Tatyana Leontovich50e62dd2018-03-28 20:59:52 +03001{% from 'virtual-offline-ssl/underlay.yaml' import HOSTNAME_CFG01 with context %}
2{% from 'virtual-offline-ssl/underlay.yaml' import HOSTNAME_CTL01 with context %}
3{% from 'virtual-offline-ssl/underlay.yaml' import HOSTNAME_CTL02 with context %}
4{% from 'virtual-offline-ssl/underlay.yaml' import HOSTNAME_CTL03 with context %}
5{% from 'virtual-offline-ssl/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 Leontovich69700712018-04-23 12:26:57 +03008
Tatyana Leontovich89475582018-04-24 12:35:02 +03009{% from 'virtual-offline-ssl/underlay.yaml' import LAB_CONFIG_NAME with context %}
10{% from 'virtual-offline-ssl/underlay.yaml' import DOMAIN_NAME with context %}
Tatyana Leontovich69700712018-04-23 12:26:57 +030011
Tatyana Leontovich50e62dd2018-03-28 20:59:52 +030012{% set REPOSITORY_SUITE = os_env('REPOSITORY_SUITE', 'proposed') %}
13{% set DOCKER_LOCAL_REPO = os_env('DOCKER_LOCAL_REPO', 'deb [arch=amd64] http://mirror.mcp.mirantis.local.test/ubuntu-xenial/docker/ ' + REPOSITORY_SUITE + ' stable') %}
14
Tatyana Leontovich69700712018-04-23 12:26:57 +030015{% import 'shared-salt.yaml' as SHARED with context %}
Tatyana Leontovichbb29d1d2018-06-19 13:23:04 +030016{% import 'shared-backup-restore.yaml' as BACKUP with context %}
Tatyana Leontovich50e62dd2018-03-28 20:59:52 +030017
18# Install OpenStack control services
19
20- description: Nginx
21 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
22 -C 'I@nginx:server' state.sls salt.minion
23 node_name: {{ HOSTNAME_CFG01 }}
24 retry: {count: 1, delay: 5}
25 skip_fail: true
26
27- description: Deploy nginx proxy
28 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
29 -C 'I@nginx:server' state.sls nginx
30 node_name: {{ HOSTNAME_CFG01 }}
31 retry: {count: 1, delay: 5}
32 skip_fail: true
33
34- description: Install glance on all controllers
35 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
36 -C 'I@glance:server' state.sls glance -b 1
37 node_name: {{ HOSTNAME_CFG01 }}
38 retry: {count: 1, delay: 5}
39 skip_fail: false
40
41- description: Install keystone service (note that different fernet keys are created on different nodes)
42 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
43 -C 'I@keystone:server' state.sls keystone.server -b 1
44 node_name: {{ HOSTNAME_CFG01 }}
45 retry: {count: 2, delay: 15}
46 skip_fail: false
47
48- description: Restart apache due to PROD-10477
49 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' cmd.run "systemctl restart apache2"
50 node_name: {{ HOSTNAME_CFG01 }}
51 retry: {count: 1, delay: 15}
52 skip_fail: false
53
54- description: Check apache status to PROD-10477
55 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' cmd.run "systemctl status apache2"
56 node_name: {{ HOSTNAME_CFG01 }}
57 retry: {count: 1, delay: 15}
58 skip_fail: false
59
60- description: Mount glusterfs.client volumes (resuires created 'keystone' and 'glusterfs' system users)
61 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
62 -C 'I@glance:server' state.sls glusterfs.client
63 node_name: {{ HOSTNAME_CFG01 }}
64 retry: {count: 1, delay: 5}
65 skip_fail: false
66
67- description: Update fernet keys for keystone server on the mounted glusterfs volume
68 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
69 -C 'I@keystone:server' state.sls keystone.server -b 1
70 node_name: {{ HOSTNAME_CFG01 }}
71 retry: {count: 1, delay: 5}
72 skip_fail: false
73
74- description: Populate keystone services/tenants/admins
75 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
76 -C 'I@keystone:client' state.sls keystone.client
77 node_name: {{ HOSTNAME_CFG01 }}
78 retry: {count: 2, delay: 5}
79 skip_fail: false
80
81- description: Check keystone service-list
82 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
83 -C 'I@keystone:server' cmd.run '. /root/keystonercv3; openstack service list'
84 node_name: {{ HOSTNAME_CFG01 }}
85 retry: {count: 1, delay: 5}
86 skip_fail: false
87
88- description: Check glance image-list
89 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
90 -C 'I@keystone:server' cmd.run '. /root/keystonerc; glance image-list'
91 node_name: {{ HOSTNAME_CFG01 }}
92 retry: {count: 1, delay: 5}
93 skip_fail: false
94
95
96- description: Install nova on all controllers
97 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
98 -C 'I@nova:controller' state.sls nova -b 1
99 node_name: {{ HOSTNAME_CFG01 }}
100 retry: {count: 2, delay: 5}
101 skip_fail: false
102
103- description: Check nova service-list
104 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
105 -C 'I@keystone:server' cmd.run '. /root/keystonerc; nova --debug service-list'
106 node_name: {{ HOSTNAME_CFG01 }}
107 retry: {count: 3, delay: 5}
108 skip_fail: false
109
110
111- description: Install cinder
112 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
113 -C 'I@cinder:controller' state.sls cinder -b 1
114 node_name: {{ HOSTNAME_CFG01 }}
115 retry: {count: 1, delay: 5}
116 skip_fail: false
117
118- description: Check cinder list
119 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
120 -C 'I@keystone:server' cmd.run '. /root/keystonerc; cinder list'
121 node_name: {{ HOSTNAME_CFG01 }}
122 retry: {count: 1, delay: 5}
123 skip_fail: false
124
125
126- description: Install neutron service
127 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
128 -C 'I@neutron:server' state.sls neutron -b 1
129 node_name: {{ HOSTNAME_CFG01 }}
130 retry: {count: 1, delay: 5}
131 skip_fail: false
132
133- description: Install neutron on gtw node
134 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
135 -C 'I@neutron:gateway' state.sls neutron
136 node_name: {{ HOSTNAME_CFG01 }}
137 retry: {count: 1, delay: 5}
138 skip_fail: false
139
140## isntall designate
141#- description: Install bind
142# cmd: salt --hard-crash --state-output=mixed --state-verbose=False
143# -C 'I@bind:server' state.sls bind
144# node_name: {{ HOSTNAME_CFG01 }}
145# retry: {count: 1, delay: 5}
146# skip_fail: false
147#
148#- description: Install designate
149# cmd: salt --hard-crash --state-output=mixed --state-verbose=False
150# -C 'I@designate:server' state.sls designate -b 1
151# node_name: {{ HOSTNAME_CFG01 }}
152# retry: {count: 5, delay: 10}
153# skip_fail: false
154
155- description: Check neutron agent-list
156 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
157 -C 'I@keystone:server' cmd.run '. /root/keystonerc; neutron agent-list'
158 node_name: {{ HOSTNAME_CFG01 }}
159 retry: {count: 1, delay: 5}
160 skip_fail: false
161
162
163- description: Install heat service
164 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
165 -C 'I@heat:server' state.sls heat -b 1
166 node_name: {{ HOSTNAME_CFG01 }}
167 retry: {count: 1, delay: 5}
168 skip_fail: false
169
170- description: Check heat service
171 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
172 -C 'I@keystone:server' cmd.run '. /root/keystonercv3; openstack orchestration resource type list'
173 node_name: {{ HOSTNAME_CFG01 }}
174 retry: {count: 5, delay: 10}
175 skip_fail: false
176
177# Install Telemetry services (mdb nodes)
178- description: Install redis service
179 cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@redis:cluster:role:master' state.sls redis &&
180 salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@redis:server' state.sls redis
181 node_name: {{ HOSTNAME_CFG01 }}
182 retry: {count: 1, delay: 5}
183 skip_fail: false
184
185- description: Install gnocchi server
186 cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@gnocchi:server and *01*' state.sls gnocchi.server &&
187 salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@gnocchi:server' state.sls gnocchi.server
188 node_name: {{ HOSTNAME_CFG01 }}
189 retry: {count: 1, delay: 5}
190 skip_fail: false
191
192#- description: Install gnocchi statsd (optional)
193# cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@gnocchi:statsd and *01*' state.sls gnocchi.statsd &&
194# salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@gnocchi:statsd' state.sls gnocchi.statsd
195# node_name: {{ HOSTNAME_CFG01 }}
196# retry: {count: 1, delay: 5}
197# skip_fail: false
198
199- description: Install panko server
200 cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@panko:server and *01*' state.sls panko &&
201 salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@panko:server' state.sls panko
202 node_name: {{ HOSTNAME_CFG01 }}
203 retry: {count: 1, delay: 5}
204 skip_fail: false
205
206- description: Install ceilometer server on first node
207 cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@ceilometer:server and *01*' state.sls ceilometer
208 node_name: {{ HOSTNAME_CFG01 }}
209 retry: {count: 2, delay: 5}
210 skip_fail: false
211
212- description: Install ceilometer server on other nodes
213 cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@ceilometer:server' state.sls ceilometer
214 node_name: {{ HOSTNAME_CFG01 }}
215 retry: {count: 2, delay: 5}
216 skip_fail: false
217
218- description: Install aodh server
219 cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@aodh:server and *01*' state.sls aodh &&
220 salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@aodh:server' state.sls aodh
221 node_name: {{ HOSTNAME_CFG01 }}
222 retry: {count: 1, delay: 5}
223 skip_fail: false
224
225# Install OpenStack dashboard and proxy services
226- description: Deploy horizon dashboard
227 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
228 -C 'I@horizon:server' state.sls horizon
229 node_name: {{ HOSTNAME_CFG01 }}
230 retry: {count: 1, delay: 5}
231 skip_fail: true
232
233- description: Deploy nginx proxy
234 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
235 -C 'I@nginx:server' state.sls nginx
236 node_name: {{ HOSTNAME_CFG01 }}
237 retry: {count: 1, delay: 5}
238 skip_fail: true
239
240- description: Install manila-api on first node
241 cmd: |
242 salt -C 'I@manila:api and *01*' state.sls manila.api;
243 node_name: {{ HOSTNAME_CFG01 }}
244 retry: {count: 1, delay: 5}
245 skip_fail: false
246
247- description: Install manila-api on other nodes
248 cmd: |
249 salt -C 'I@manila:api and not *01*' state.sls manila.api;
250 node_name: {{ HOSTNAME_CFG01 }}
251 retry: {count: 1, delay: 5}
252 skip_fail: false
253
254- description: Install manila-scheduler
255 cmd: |
256 salt -C 'I@manila:scheduler' state.sls manila.scheduler;
257 node_name: {{ HOSTNAME_CFG01 }}
258 retry: {count: 1, delay: 5}
259 skip_fail: false
260
261- description: Install manila-share
262 cmd: |
263 salt -C 'I@manila:share' state.sls manila.share;
264 node_name: {{ HOSTNAME_CFG01 }}
265 retry: {count: 1, delay: 5}
266 skip_fail: false
267
Tatyana Leontovich50e62dd2018-03-28 20:59:52 +0300268- description: Check manila-services
269 cmd: |
270 salt 'ctl01*' cmd.run '. /root/keystonercv3; manila service-list'
271 node_name: {{ HOSTNAME_CFG01 }}
Oleksii Butenko3deb90e2018-04-06 15:34:38 +0300272 retry: {count: 3, delay: 5}
Tatyana Leontovich50e62dd2018-03-28 20:59:52 +0300273 skip_fail: false
274
275- description: Create manila type
276 cmd: |
Tatyana Leontovich69700712018-04-23 12:26:57 +0300277 salt 'ctl01*' cmd.run '. /root/keystonercv3; manila type-create default false --create_share_from_snapshot_support true --revert_to_snapshot_support true --mount_snapshot_support true --snapshot_support true --is_public true'
Tatyana Leontovich50e62dd2018-03-28 20:59:52 +0300278 node_name: {{ HOSTNAME_CFG01 }}
279 retry: {count: 1, delay: 5}
280 skip_fail: false
281
Tatyana Leontovich69700712018-04-23 12:26:57 +0300282- description: Create CIFS and NFS share and check it status
Tatyana Leontovich50e62dd2018-03-28 20:59:52 +0300283 cmd: |
Tatyana Leontovich69700712018-04-23 12:26:57 +0300284 salt 'ctl01*' cmd.run '. /root/keystonercv3; manila create CIFS 1 --share-type=default';
285 salt 'ctl01*' cmd.run '. /root/keystonercv3; manila create NFS 1 --share-type=default';
286 sleep 5;
287 salt 'ctl01*' cmd.run '. /root/keystonercv3; manila list';
Tatyana Leontovich50e62dd2018-03-28 20:59:52 +0300288 node_name: {{ HOSTNAME_CFG01 }}
289 retry: {count: 1, delay: 5}
290 skip_fail: false
291
292# Install DogTag server service
293- description: Install DogTag server service
294 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
295 -C 'I@dogtag:server and *01*' state.sls dogtag.server
296 node_name: {{ HOSTNAME_CFG01 }}
297 retry: {count: 1, delay: 5}
298 skip_fail: false
299
300- description: Install DogTag server service
301 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
302 -C 'I@dogtag:server' state.sls dogtag.server
303 node_name: {{ HOSTNAME_CFG01 }}
304 retry: {count: 1, delay: 5}
305 skip_fail: false
306
307# Install Barbican server service
308- description: Install Barbican server service
309 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
310 -C 'I@barbican:server and *01*' state.sls barbican.server
311 node_name: {{ HOSTNAME_CFG01 }}
312 retry: {count: 1, delay: 5}
313 skip_fail: false
314
315- description: Install Barbican server service
316 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
317 -C 'I@barbican:server' state.sls barbican.server
318 node_name: {{ HOSTNAME_CFG01 }}
319 retry: {count: 1, delay: 5}
320 skip_fail: false
321
322- description: Install Barbican client
323 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
324 -C 'I@barbican:client' state.sls barbican.client
325 node_name: {{ HOSTNAME_CFG01 }}
326 retry: {count: 1, delay: 5}
327 skip_fail: True
328
329# Install compute node
330
331- description: Apply formulas for compute node
332 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply
333 node_name: {{ HOSTNAME_CFG01 }}
334 retry: {count: 1, delay: 5}
335 skip_fail: true
336
337- description: Re-apply(as in doc) formulas for compute node
338 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply
339 node_name: {{ HOSTNAME_CFG01 }}
340 retry: {count: 1, delay: 5}
341 skip_fail: false
342
343- description: Check IP on computes
344 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' cmd.run
345 'ip a'
346 node_name: {{ HOSTNAME_CFG01 }}
347 retry: {count: 10, delay: 30}
348 skip_fail: false
349
350# Configure cinder-volume salt-call
351#- description: Set disks 01
352# cmd: salt-call cmd.run 'echo -e "nn\np\n\n\n\nw" | fdisk /dev/vdb'
353# node_name: {{ HOSTNAME_CTL01 }}
354# retry: {count: 1, delay: 30}
355# skip_fail: false
356#
357#- description: Set disks 02
358# cmd: salt-call cmd.run 'echo -e "nn\np\n\n\n\nw" | fdisk /dev/vdb'
359# node_name: {{ HOSTNAME_CTL02 }}
360# retry: {count: 1, delay: 30}
361# skip_fail: false
362#
363#- description: Set disks 03
364# cmd: salt-call cmd.run 'echo -e "nn\np\n\n\n\nw" | fdisk /dev/vdb'
365# node_name: {{ HOSTNAME_CTL03 }}
366# retry: {count: 1, delay: 30}
367# skip_fail: false
368#
369#- description: Create partitions 01
370# cmd: salt-call cmd.run 'pvcreate /dev/vdb1'
371# node_name: {{ HOSTNAME_CTL01 }}
372# retry: {count: 1, delay: 30}
373# skip_fail: false
374#
375#- description: Create partitions 02
376# cmd: salt-call cmd.run 'pvcreate /dev/vdb1'
377# node_name: {{ HOSTNAME_CTL02 }}
378# retry: {count: 1, delay: 30}
379# skip_fail: false
380#
381#- description: Create partitions 03
382# cmd: salt-call cmd.run 'pvcreate /dev/vdb1'
383# node_name: {{ HOSTNAME_CTL03 }}
384# retry: {count: 1, delay: 30}
385# skip_fail: false
386#
387#- description: create volume_group
388# cmd: salt "ctl*" cmd.run 'vgcreate cinder-volumes /dev/vdb1'
389# node_name: {{ HOSTNAME_CFG01 }}
390# retry: {count: 1, delay: 30}
391# skip_fail: false
392#
393#- description: Install cinder-volume
394# cmd: salt 'ctl*' cmd.run 'apt-get install cinder-volume -y'
395# node_name: {{ HOSTNAME_CFG01 }}
396# retry: {count: 1, delay: 30}
397# skip_fail: false
398#
399#- description: Install crudini
400# cmd: salt "ctl*" cmd.run 'apt-get install crudini -y'
401# node_name: {{ HOSTNAME_CFG01 }}
402# retry: {count: 1, delay: 30}
403# skip_fail: false
404#
405#- description: Temporary WR set enabled backends value 01
406# cmd: salt-call cmd.run 'crudini --verbose --set /etc/cinder/cinder.conf DEFAULT enabled_backends lvm'
407# node_name: {{ HOSTNAME_CTL01 }}
408# retry: {count: 1, delay: 30}
409# skip_fail: false
410#
411#- description: Temporary WR set enabled backends value 02
412# cmd: salt-call cmd.run 'crudini --verbose --set /etc/cinder/cinder.conf DEFAULT enabled_backends lvm'
413# node_name: {{ HOSTNAME_CTL02 }}
414# retry: {count: 1, delay: 30}
415# skip_fail: false
416#
417#- description: Temporary WR set enabled backends value 03
418# cmd: salt-call cmd.run 'crudini --verbose --set /etc/cinder/cinder.conf DEFAULT enabled_backends lvm'
419# node_name: {{ HOSTNAME_CTL03 }}
420# retry: {count: 1, delay: 30}
421# skip_fail: false
422#
423#- description: Restart cinder volume
424# cmd: |
425# salt -C 'I@cinder:controller' service.restart cinder-volume;
426# node_name: {{ HOSTNAME_CFG01 }}
427# retry: {count: 2, delay: 5}
428# skip_fail: false
429#
430- description: Upload cirros image on ctl01
431 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
432 'wget http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-i386-disk.img'
433 node_name: {{ HOSTNAME_CFG01 }}
434 retry: {count: 2, delay: 30}
435 skip_fail: false
436
437- description: Create net04_external
438 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
439 '. /root/keystonercv3; neutron net-create net04_ext --router:external True --provider:physical_network physnet1 --provider:network_type flat'
440 node_name: {{ HOSTNAME_CFG01 }}
441 retry: {count: 1, delay: 30}
442 skip_fail: false
443
444- description: Create subnet_external
445 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
446 '. /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'
447 node_name: {{ HOSTNAME_CFG01 }}
448 retry: {count: 1, delay: 30}
449 skip_fail: false
450
451- description: Create net04
452 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
453 '. /root/keystonercv3; neutron net-create net04'
454 node_name: {{ HOSTNAME_CFG01 }}
455 retry: {count: 1, delay: 30}
456 skip_fail: false
457
458- description: Create subnet_net04
459 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
460 '. /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'
461 node_name: {{ HOSTNAME_CFG01 }}
462 retry: {count: 1, delay: 30}
463 skip_fail: false
464
465- description: Create router
466 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
467 '. /root/keystonercv3; neutron router-create net04_router01'
468 node_name: {{ HOSTNAME_CFG01 }}
469 retry: {count: 1, delay: 30}
470 skip_fail: false
471
472- description: Set geteway
473 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
474 '. /root/keystonercv3; neutron router-gateway-set net04_router01 net04_ext'
475 node_name: {{ HOSTNAME_CFG01 }}
476 retry: {count: 1, delay: 30}
477 skip_fail: false
478
479- description: Add interface
480 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
481 '. /root/keystonercv3; neutron router-interface-add net04_router01 net04__subnet'
482 node_name: {{ HOSTNAME_CFG01 }}
483 retry: {count: 1, delay: 30}
484 skip_fail: false
485
486- description: sync time
487 cmd: salt --hard-crash --state-output=mixed --state-verbose=False '*' cmd.run
488 'service ntp stop; ntpd -gq; service ntp start'
489 node_name: {{ HOSTNAME_CFG01 }}
490 retry: {count: 1, delay: 30}
491 skip_fail: false
492
493- description: Enable local docker repo
494 cmd: |
495 set -e;
496 echo "{{ DOCKER_LOCAL_REPO }}" > /etc/apt/sources.list.d/mcp_docker.list;
497 apt-get clean; apt-get update;
498 node_name: {{ HOSTNAME_GTW01 }}
499 retry: {count: 1, delay: 30}
500 skip_fail: false
501
502- description: Install docker-ce on gtw
503 cmd: salt-call cmd.run 'apt-get install docker-ce -y'
504 node_name: {{ HOSTNAME_GTW01 }}
505 retry: {count: 1, delay: 30}
506 skip_fail: false
507
508- description: Enable forward policy on gtw
509 cmd: |
510 set -e;
511 iptables --policy FORWARD ACCEPT;
512 node_name: {{ HOSTNAME_GTW01 }}
513 retry: {count: 1, delay: 30}
514 skip_fail: false
515
516- description: create rc file on cfg
517 cmd: scp ctl01:/root/keystonercv3 /root
518 node_name: {{ HOSTNAME_CFG01 }}
519 retry: {count: 1, delay: 30}
520 skip_fail: false
521
522- description: Copy rc file
523 cmd: scp /root/keystonercv3 gtw01:/root
524 node_name: {{ HOSTNAME_CFG01 }}
525 retry: {count: 1, delay: 30}
526 skip_fail: false
Tatyana Leontovich69700712018-04-23 12:26:57 +0300527
Tatyana Leontovichbb29d1d2018-06-19 13:23:04 +0300528{{ BACKUP.MACRO_BACKUP_BACKUPNINJA() }}
529{{ BACKUP.MACRO_BACKUP_XTRABACKUP() }}
530
Tatyana Leontovich69700712018-04-23 12:26:57 +0300531{{ SHARED.RUN_NEW_TEMPEST() }}