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