blob: 683db2f2b64bd80f908e7001523af6ca7ea85b76 [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
Dennis Dmitriev85145a62018-08-03 19:22:08 +0300194- description: Setup gnocchi client
195 cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@gnocchi:client and *01*' state.sls gnocchi.client &&
196 salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@gnocchi:client' state.sls gnocchi.client
197 node_name: {{ HOSTNAME_CFG01 }}
198 retry: {count: 1, delay: 5}
199 skip_fail: false
200
Tatyana Leontovich50e62dd2018-03-28 20:59:52 +0300201#- description: Install gnocchi statsd (optional)
202# cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@gnocchi:statsd and *01*' state.sls gnocchi.statsd &&
203# salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@gnocchi:statsd' state.sls gnocchi.statsd
204# node_name: {{ HOSTNAME_CFG01 }}
205# retry: {count: 1, delay: 5}
206# skip_fail: false
207
208- description: Install panko server
209 cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@panko:server and *01*' state.sls panko &&
210 salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@panko:server' state.sls panko
211 node_name: {{ HOSTNAME_CFG01 }}
212 retry: {count: 1, delay: 5}
213 skip_fail: false
214
215- description: Install ceilometer server on first node
216 cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@ceilometer:server and *01*' state.sls ceilometer
217 node_name: {{ HOSTNAME_CFG01 }}
218 retry: {count: 2, delay: 5}
219 skip_fail: false
220
221- description: Install ceilometer server on other nodes
222 cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@ceilometer:server' state.sls ceilometer
223 node_name: {{ HOSTNAME_CFG01 }}
224 retry: {count: 2, delay: 5}
225 skip_fail: false
226
227- description: Install aodh server
228 cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@aodh:server and *01*' state.sls aodh &&
229 salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@aodh:server' state.sls aodh
230 node_name: {{ HOSTNAME_CFG01 }}
231 retry: {count: 1, delay: 5}
232 skip_fail: false
233
234# Install OpenStack dashboard and proxy services
235- description: Deploy horizon dashboard
236 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
237 -C 'I@horizon:server' state.sls horizon
238 node_name: {{ HOSTNAME_CFG01 }}
239 retry: {count: 1, delay: 5}
240 skip_fail: true
241
242- description: Deploy nginx proxy
243 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
244 -C 'I@nginx:server' state.sls nginx
245 node_name: {{ HOSTNAME_CFG01 }}
246 retry: {count: 1, delay: 5}
247 skip_fail: true
248
249- description: Install manila-api on first node
250 cmd: |
251 salt -C 'I@manila:api and *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-api on other nodes
257 cmd: |
258 salt -C 'I@manila:api and not *01*' state.sls manila.api;
259 node_name: {{ HOSTNAME_CFG01 }}
260 retry: {count: 1, delay: 5}
261 skip_fail: false
262
263- description: Install manila-scheduler
264 cmd: |
265 salt -C 'I@manila:scheduler' state.sls manila.scheduler;
266 node_name: {{ HOSTNAME_CFG01 }}
267 retry: {count: 1, delay: 5}
268 skip_fail: false
269
270- description: Install manila-share
271 cmd: |
272 salt -C 'I@manila:share' state.sls manila.share;
273 node_name: {{ HOSTNAME_CFG01 }}
274 retry: {count: 1, delay: 5}
275 skip_fail: false
276
Tatyana Leontovich50e62dd2018-03-28 20:59:52 +0300277- description: Check manila-services
278 cmd: |
279 salt 'ctl01*' cmd.run '. /root/keystonercv3; manila service-list'
280 node_name: {{ HOSTNAME_CFG01 }}
Oleksii Butenko3deb90e2018-04-06 15:34:38 +0300281 retry: {count: 3, delay: 5}
Tatyana Leontovich50e62dd2018-03-28 20:59:52 +0300282 skip_fail: false
283
Maksym Shalamovae15a772018-07-20 13:13:29 +0300284- description: Create manila type
285 cmd: |
286 salt 'cfg01*' state.sls manila.client
287 node_name: {{ HOSTNAME_CFG01 }}
288 retry: {count: 1, delay: 5}
289 skip_fail: false
290
Tatyana Leontovich69700712018-04-23 12:26:57 +0300291- description: Create CIFS and NFS share and check it status
Tatyana Leontovich50e62dd2018-03-28 20:59:52 +0300292 cmd: |
Tatyana Leontovich69700712018-04-23 12:26:57 +0300293 salt 'ctl01*' cmd.run '. /root/keystonercv3; manila create CIFS 1 --share-type=default';
294 salt 'ctl01*' cmd.run '. /root/keystonercv3; manila create NFS 1 --share-type=default';
295 sleep 5;
296 salt 'ctl01*' cmd.run '. /root/keystonercv3; manila list';
Tatyana Leontovich50e62dd2018-03-28 20:59:52 +0300297 node_name: {{ HOSTNAME_CFG01 }}
298 retry: {count: 1, delay: 5}
299 skip_fail: false
300
301# Install DogTag server service
302- description: Install DogTag server service
303 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
304 -C 'I@dogtag:server and *01*' state.sls dogtag.server
305 node_name: {{ HOSTNAME_CFG01 }}
306 retry: {count: 1, delay: 5}
307 skip_fail: false
308
309- description: Install DogTag server service
310 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
311 -C 'I@dogtag:server' state.sls dogtag.server
312 node_name: {{ HOSTNAME_CFG01 }}
313 retry: {count: 1, delay: 5}
314 skip_fail: false
315
316# Install Barbican server service
317- description: Install Barbican server service
318 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
319 -C 'I@barbican:server and *01*' state.sls barbican.server
320 node_name: {{ HOSTNAME_CFG01 }}
321 retry: {count: 1, delay: 5}
322 skip_fail: false
323
324- description: Install Barbican server service
325 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
326 -C 'I@barbican:server' state.sls barbican.server
327 node_name: {{ HOSTNAME_CFG01 }}
328 retry: {count: 1, delay: 5}
329 skip_fail: false
330
331- description: Install Barbican client
332 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
333 -C 'I@barbican:client' state.sls barbican.client
334 node_name: {{ HOSTNAME_CFG01 }}
335 retry: {count: 1, delay: 5}
336 skip_fail: True
337
338# Install compute node
339
340- description: Apply formulas for compute node
341 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply
342 node_name: {{ HOSTNAME_CFG01 }}
343 retry: {count: 1, delay: 5}
344 skip_fail: true
345
346- description: Re-apply(as in doc) formulas for compute node
347 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply
348 node_name: {{ HOSTNAME_CFG01 }}
349 retry: {count: 1, delay: 5}
350 skip_fail: false
351
352- description: Check IP on computes
353 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' cmd.run
354 'ip a'
355 node_name: {{ HOSTNAME_CFG01 }}
356 retry: {count: 10, delay: 30}
357 skip_fail: false
358
359# Configure cinder-volume salt-call
360#- description: Set disks 01
361# cmd: salt-call cmd.run 'echo -e "nn\np\n\n\n\nw" | fdisk /dev/vdb'
362# node_name: {{ HOSTNAME_CTL01 }}
363# retry: {count: 1, delay: 30}
364# skip_fail: false
365#
366#- description: Set disks 02
367# cmd: salt-call cmd.run 'echo -e "nn\np\n\n\n\nw" | fdisk /dev/vdb'
368# node_name: {{ HOSTNAME_CTL02 }}
369# retry: {count: 1, delay: 30}
370# skip_fail: false
371#
372#- description: Set disks 03
373# cmd: salt-call cmd.run 'echo -e "nn\np\n\n\n\nw" | fdisk /dev/vdb'
374# node_name: {{ HOSTNAME_CTL03 }}
375# retry: {count: 1, delay: 30}
376# skip_fail: false
377#
378#- description: Create partitions 01
379# cmd: salt-call cmd.run 'pvcreate /dev/vdb1'
380# node_name: {{ HOSTNAME_CTL01 }}
381# retry: {count: 1, delay: 30}
382# skip_fail: false
383#
384#- description: Create partitions 02
385# cmd: salt-call cmd.run 'pvcreate /dev/vdb1'
386# node_name: {{ HOSTNAME_CTL02 }}
387# retry: {count: 1, delay: 30}
388# skip_fail: false
389#
390#- description: Create partitions 03
391# cmd: salt-call cmd.run 'pvcreate /dev/vdb1'
392# node_name: {{ HOSTNAME_CTL03 }}
393# retry: {count: 1, delay: 30}
394# skip_fail: false
395#
396#- description: create volume_group
397# cmd: salt "ctl*" cmd.run 'vgcreate cinder-volumes /dev/vdb1'
398# node_name: {{ HOSTNAME_CFG01 }}
399# retry: {count: 1, delay: 30}
400# skip_fail: false
401#
402#- description: Install cinder-volume
403# cmd: salt 'ctl*' cmd.run 'apt-get install cinder-volume -y'
404# node_name: {{ HOSTNAME_CFG01 }}
405# retry: {count: 1, delay: 30}
406# skip_fail: false
407#
408#- description: Install crudini
409# cmd: salt "ctl*" cmd.run 'apt-get install crudini -y'
410# node_name: {{ HOSTNAME_CFG01 }}
411# retry: {count: 1, delay: 30}
412# skip_fail: false
413#
414#- description: Temporary WR set enabled backends value 01
415# cmd: salt-call cmd.run 'crudini --verbose --set /etc/cinder/cinder.conf DEFAULT enabled_backends lvm'
416# node_name: {{ HOSTNAME_CTL01 }}
417# retry: {count: 1, delay: 30}
418# skip_fail: false
419#
420#- description: Temporary WR set enabled backends value 02
421# cmd: salt-call cmd.run 'crudini --verbose --set /etc/cinder/cinder.conf DEFAULT enabled_backends lvm'
422# node_name: {{ HOSTNAME_CTL02 }}
423# retry: {count: 1, delay: 30}
424# skip_fail: false
425#
426#- description: Temporary WR set enabled backends value 03
427# cmd: salt-call cmd.run 'crudini --verbose --set /etc/cinder/cinder.conf DEFAULT enabled_backends lvm'
428# node_name: {{ HOSTNAME_CTL03 }}
429# retry: {count: 1, delay: 30}
430# skip_fail: false
431#
432#- description: Restart cinder volume
433# cmd: |
434# salt -C 'I@cinder:controller' service.restart cinder-volume;
435# node_name: {{ HOSTNAME_CFG01 }}
436# retry: {count: 2, delay: 5}
437# skip_fail: false
438#
439- description: Upload cirros image on ctl01
440 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
441 'wget http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-i386-disk.img'
442 node_name: {{ HOSTNAME_CFG01 }}
443 retry: {count: 2, delay: 30}
444 skip_fail: false
445
446- description: Create net04_external
447 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
448 '. /root/keystonercv3; neutron net-create net04_ext --router:external True --provider:physical_network physnet1 --provider:network_type flat'
449 node_name: {{ HOSTNAME_CFG01 }}
450 retry: {count: 1, delay: 30}
451 skip_fail: false
452
453- description: Create subnet_external
454 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
455 '. /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'
456 node_name: {{ HOSTNAME_CFG01 }}
457 retry: {count: 1, delay: 30}
458 skip_fail: false
459
460- description: Create net04
461 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
462 '. /root/keystonercv3; neutron net-create net04'
463 node_name: {{ HOSTNAME_CFG01 }}
464 retry: {count: 1, delay: 30}
465 skip_fail: false
466
467- description: Create subnet_net04
468 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
469 '. /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'
470 node_name: {{ HOSTNAME_CFG01 }}
471 retry: {count: 1, delay: 30}
472 skip_fail: false
473
474- description: Create router
475 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
476 '. /root/keystonercv3; neutron router-create net04_router01'
477 node_name: {{ HOSTNAME_CFG01 }}
478 retry: {count: 1, delay: 30}
479 skip_fail: false
480
481- description: Set geteway
482 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
483 '. /root/keystonercv3; neutron router-gateway-set net04_router01 net04_ext'
484 node_name: {{ HOSTNAME_CFG01 }}
485 retry: {count: 1, delay: 30}
486 skip_fail: false
487
488- description: Add interface
489 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
490 '. /root/keystonercv3; neutron router-interface-add net04_router01 net04__subnet'
491 node_name: {{ HOSTNAME_CFG01 }}
492 retry: {count: 1, delay: 30}
493 skip_fail: false
494
495- description: sync time
496 cmd: salt --hard-crash --state-output=mixed --state-verbose=False '*' cmd.run
497 'service ntp stop; ntpd -gq; service ntp start'
498 node_name: {{ HOSTNAME_CFG01 }}
499 retry: {count: 1, delay: 30}
500 skip_fail: false
501
Tatyana Leontovich0eb5ca32018-07-13 22:05:17 +0300502
Tatyana Leontovich50e62dd2018-03-28 20:59:52 +0300503- description: Enable local docker repo
504 cmd: |
505 set -e;
506 echo "{{ DOCKER_LOCAL_REPO }}" > /etc/apt/sources.list.d/mcp_docker.list;
507 apt-get clean; apt-get update;
508 node_name: {{ HOSTNAME_GTW01 }}
509 retry: {count: 1, delay: 30}
510 skip_fail: false
511
512- description: Install docker-ce on gtw
513 cmd: salt-call cmd.run 'apt-get install docker-ce -y'
514 node_name: {{ HOSTNAME_GTW01 }}
515 retry: {count: 1, delay: 30}
516 skip_fail: false
517
518- description: Enable forward policy on gtw
519 cmd: |
520 set -e;
521 iptables --policy FORWARD ACCEPT;
522 node_name: {{ HOSTNAME_GTW01 }}
523 retry: {count: 1, delay: 30}
524 skip_fail: false
525
526- description: create rc file on cfg
527 cmd: scp ctl01:/root/keystonercv3 /root
528 node_name: {{ HOSTNAME_CFG01 }}
529 retry: {count: 1, delay: 30}
530 skip_fail: false
531
532- description: Copy rc file
533 cmd: scp /root/keystonercv3 gtw01:/root
534 node_name: {{ HOSTNAME_CFG01 }}
535 retry: {count: 1, delay: 30}
536 skip_fail: false