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