blob: 4c900a58b0f7e0e112a3fa869d96f5578d19e9ca [file] [log] [blame]
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +02001{% from 'virtual-mcp-pike-ovs/underlay.yaml' import HOSTNAME_CFG01 with context %}
2{% from 'virtual-mcp-pike-ovs/underlay.yaml' import HOSTNAME_CTL01 with context %}
3{% from 'virtual-mcp-pike-ovs/underlay.yaml' import HOSTNAME_CTL02 with context %}
4{% from 'virtual-mcp-pike-ovs/underlay.yaml' import HOSTNAME_CTL03 with context %}
5{% from 'virtual-mcp-pike-ovs/underlay.yaml' import HOSTNAME_GTW01 with context %}
Tatyana Leontovich56005da2017-12-11 13:16:51 +02006{% from 'shared-salt.yaml' import IPV4_NET_EXTERNAL_PREFIX with context %}
7{% from 'shared-salt.yaml' import IPV4_NET_TENANT_PREFIX with context %}
8
9# Install OpenStack control services
10
11- description: Install glance on all controllers
12 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
13 -C 'I@glance:server' state.sls glance -b 1
14 node_name: {{ HOSTNAME_CFG01 }}
15 retry: {count: 1, delay: 5}
16 skip_fail: false
17
18- description: Install keystone service (note that different fernet keys are created on different nodes)
19 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
20 -C 'I@keystone:server' state.sls keystone.server -b 1
21 node_name: {{ HOSTNAME_CFG01 }}
22 retry: {count: 2, delay: 15}
23 skip_fail: false
24
25- description: Restart apache due to PROD-10477
26 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' cmd.run "systemctl restart apache2"
27 node_name: {{ HOSTNAME_CFG01 }}
28 retry: {count: 1, delay: 15}
29 skip_fail: false
30
31- description: Check apache status to PROD-10477
32 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' cmd.run "systemctl status apache2"
33 node_name: {{ HOSTNAME_CFG01 }}
34 retry: {count: 1, delay: 15}
35 skip_fail: false
36
37- description: Mount glusterfs.client volumes (resuires created 'keystone' and 'glusterfs' system users)
38 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
39 -C 'I@glance:server' state.sls glusterfs.client
40 node_name: {{ HOSTNAME_CFG01 }}
41 retry: {count: 1, delay: 5}
42 skip_fail: false
43
44- description: Update fernet keys for keystone server on the mounted glusterfs volume
45 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
46 -C 'I@keystone:server' state.sls keystone.server -b 1
47 node_name: {{ HOSTNAME_CFG01 }}
48 retry: {count: 1, delay: 5}
49 skip_fail: false
50
51- description: Populate keystone services/tenants/admins
52 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
53 -C 'I@keystone:client' state.sls keystone.client
54 node_name: {{ HOSTNAME_CFG01 }}
Dennis Dmitrievf073e6f2018-02-06 23:45:15 +020055 retry: {count: 2, delay: 5}
Tatyana Leontovich56005da2017-12-11 13:16:51 +020056 skip_fail: false
57
58- description: Check keystone service-list
59 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
60 -C 'I@keystone:server' cmd.run '. /root/keystonercv3; openstack service list'
61 node_name: {{ HOSTNAME_CFG01 }}
62 retry: {count: 1, delay: 5}
63 skip_fail: false
64
65- description: Check glance image-list
66 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +020067 -C 'I@keystone:server' cmd.run '. /root/keystonerc; glance image-list'
Tatyana Leontovich56005da2017-12-11 13:16:51 +020068 node_name: {{ HOSTNAME_CFG01 }}
69 retry: {count: 1, delay: 5}
70 skip_fail: false
71
72
73- description: Install nova on all controllers
74 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
75 -C 'I@nova:controller' state.sls nova -b 1
76 node_name: {{ HOSTNAME_CFG01 }}
77 retry: {count: 2, delay: 5}
78 skip_fail: false
79
80- description: Check nova service-list
81 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +020082 -C 'I@keystone:server' cmd.run '. /root/keystonerc; nova --debug service-list'
Tatyana Leontovich56005da2017-12-11 13:16:51 +020083 node_name: {{ HOSTNAME_CFG01 }}
84 retry: {count: 3, delay: 5}
85 skip_fail: false
86
87
88- description: Install cinder
89 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
90 -C 'I@cinder:controller' state.sls cinder -b 1
91 node_name: {{ HOSTNAME_CFG01 }}
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +020092 retry: {count: 1, delay: 5}
Tatyana Leontovich56005da2017-12-11 13:16:51 +020093 skip_fail: false
94
95- description: Check cinder list
96 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +020097 -C 'I@keystone:server' cmd.run '. /root/keystonerc; cinder list'
Tatyana Leontovich56005da2017-12-11 13:16:51 +020098 node_name: {{ HOSTNAME_CFG01 }}
99 retry: {count: 1, delay: 5}
100 skip_fail: false
101
102
103- description: Install neutron service
104 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
105 -C 'I@neutron:server' state.sls neutron -b 1
106 node_name: {{ HOSTNAME_CFG01 }}
107 retry: {count: 1, delay: 5}
108 skip_fail: false
109
110- description: Install neutron on gtw node
111 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
112 -C 'I@neutron:gateway' state.sls neutron
113 node_name: {{ HOSTNAME_CFG01 }}
114 retry: {count: 1, delay: 5}
115 skip_fail: false
116
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200117# isntall designate
118- description: Install bind
119 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
120 -C 'I@bind:server' state.sls bind
121 node_name: {{ HOSTNAME_CFG01 }}
122 retry: {count: 1, delay: 5}
123 skip_fail: false
124
125- description: Install designate
126 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
127 -C 'I@designate:server' state.sls designate -b 1
128 node_name: {{ HOSTNAME_CFG01 }}
129 retry: {count: 5, delay: 10}
130 skip_fail: false
131
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200132- description: Check neutron agent-list
133 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200134 -C 'I@keystone:server' cmd.run '. /root/keystonerc; neutron agent-list'
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200135 node_name: {{ HOSTNAME_CFG01 }}
136 retry: {count: 1, delay: 5}
137 skip_fail: false
138
139
140- description: Install heat service
141 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
142 -C 'I@heat:server' state.sls heat -b 1
143 node_name: {{ HOSTNAME_CFG01 }}
144 retry: {count: 1, delay: 5}
145 skip_fail: false
146
147- description: Check heat service
148 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
149 -C 'I@keystone:server' cmd.run '. /root/keystonercv3; openstack orchestration resource type list'
150 node_name: {{ HOSTNAME_CFG01 }}
151 retry: {count: 5, delay: 10}
152 skip_fail: false
153
Dennis Dmitrievd86ffa12018-03-15 22:07:51 +0200154# Install Telemetry services (mdb nodes)
155- description: Install redis service
156 cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@redis:cluster:role:master' state.sls redis &&
157 salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@redis:server' state.sls redis
158 node_name: {{ HOSTNAME_CFG01 }}
159 retry: {count: 1, delay: 5}
160 skip_fail: false
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200161
Dennis Dmitrievd86ffa12018-03-15 22:07:51 +0200162- description: Install gnocchi server
163 cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@gnocchi:server and *01*' state.sls gnocchi.server &&
164 salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@gnocchi:server' state.sls gnocchi.server
165 node_name: {{ HOSTNAME_CFG01 }}
166 retry: {count: 1, delay: 5}
167 skip_fail: false
168
Dennis Dmitriev78df9ce2018-03-16 11:45:50 +0200169#- description: Install gnocchi statsd (optional)
170# cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@gnocchi:statsd and *01*' state.sls gnocchi.statsd &&
171# salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@gnocchi:statsd' state.sls gnocchi.statsd
172# node_name: {{ HOSTNAME_CFG01 }}
173# retry: {count: 1, delay: 5}
174# skip_fail: false
Dennis Dmitrievd86ffa12018-03-15 22:07:51 +0200175
176- description: Install panko server
177 cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@panko:server and *01*' state.sls panko &&
178 salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@panko:server' state.sls panko
179 node_name: {{ HOSTNAME_CFG01 }}
180 retry: {count: 1, delay: 5}
181 skip_fail: false
182
Tatyana Leontovich51644ec2018-03-22 13:13:31 +0200183- description: Install ceilometer server on first node
184 cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@ceilometer:server and *01*' state.sls ceilometer
Dennis Dmitrievd86ffa12018-03-15 22:07:51 +0200185 node_name: {{ HOSTNAME_CFG01 }}
Tatyana Leontovich51644ec2018-03-22 13:13:31 +0200186 retry: {count: 2, delay: 5}
187 skip_fail: false
188
189- description: Install ceilometer server on other nodes
190 cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@ceilometer:server' state.sls ceilometer
191 node_name: {{ HOSTNAME_CFG01 }}
192 retry: {count: 2, delay: 5}
Dennis Dmitrievd86ffa12018-03-15 22:07:51 +0200193 skip_fail: false
194
195- description: Install aodh server
196 cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@aodh:server and *01*' state.sls aodh &&
197 salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@aodh:server' state.sls aodh
198 node_name: {{ HOSTNAME_CFG01 }}
199 retry: {count: 1, delay: 5}
200 skip_fail: false
201
202# Install OpenStack dashboard and proxy services
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200203- description: Deploy horizon dashboard
204 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
205 -C 'I@horizon:server' state.sls horizon
206 node_name: {{ HOSTNAME_CFG01 }}
207 retry: {count: 1, delay: 5}
208 skip_fail: true
209
210- description: Deploy nginx proxy
211 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
212 -C 'I@nginx:server' state.sls nginx
213 node_name: {{ HOSTNAME_CFG01 }}
214 retry: {count: 1, delay: 5}
215 skip_fail: true
216
217
218# Install compute node
219
220- description: Apply formulas for compute node
221 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply
222 node_name: {{ HOSTNAME_CFG01 }}
223 retry: {count: 1, delay: 5}
224 skip_fail: true
225
226- description: Re-apply(as in doc) formulas for compute node
227 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply
228 node_name: {{ HOSTNAME_CFG01 }}
229 retry: {count: 1, delay: 5}
Oleksii Butenko9f2601c2018-02-08 15:13:21 +0200230 skip_fail: false
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200231
232- description: Check IP on computes
233 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' cmd.run
234 'ip a'
235 node_name: {{ HOSTNAME_CFG01 }}
236 retry: {count: 10, delay: 30}
237 skip_fail: false
238
239
240 # Upload cirros image
241
242- description: Upload cirros image on ctl01
243 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
244 'wget http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-i386-disk.img'
245 node_name: {{ HOSTNAME_CFG01 }}
246 retry: {count: 2, delay: 30}
247 skip_fail: false
248
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200249- description: Register image in glance
250 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
251 '. /root/keystonercv3; glance --timeout 120 image-create --name cirros --visibility public --disk-format qcow2 --container-format bare --progress < /root/cirros-0.3.4-i386-disk.img'
252 node_name: {{ HOSTNAME_CFG01 }}
253 retry: {count: 1, delay: 30}
254 skip_fail: false
255
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200256- description: Create net04_external
257 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
258 '. /root/keystonercv3; neutron net-create net04_ext --router:external True --provider:physical_network physnet1 --provider:network_type flat'
259 node_name: {{ HOSTNAME_CFG01 }}
260 retry: {count: 1, delay: 30}
261 skip_fail: false
262
263- description: Create subnet_external
264 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
265 '. /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'
266 node_name: {{ HOSTNAME_CFG01 }}
267 retry: {count: 1, delay: 30}
268 skip_fail: false
269
270- description: Create net04
271 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
272 '. /root/keystonercv3; neutron net-create net04'
273 node_name: {{ HOSTNAME_CFG01 }}
274 retry: {count: 1, delay: 30}
275 skip_fail: false
276
277- description: Create subnet_net04
278 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
279 '. /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'
280 node_name: {{ HOSTNAME_CFG01 }}
281 retry: {count: 1, delay: 30}
282 skip_fail: false
283
284- description: Create router
285 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
286 '. /root/keystonercv3; neutron router-create net04_router01'
287 node_name: {{ HOSTNAME_CFG01 }}
288 retry: {count: 1, delay: 30}
289 skip_fail: false
290
291- description: Set geteway
292 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
293 '. /root/keystonercv3; neutron router-gateway-set net04_router01 net04_ext'
294 node_name: {{ HOSTNAME_CFG01 }}
295 retry: {count: 1, delay: 30}
296 skip_fail: false
297
298- description: Add interface
299 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
300 '. /root/keystonercv3; neutron router-interface-add net04_router01 net04__subnet'
301 node_name: {{ HOSTNAME_CFG01 }}
302 retry: {count: 1, delay: 30}
303 skip_fail: false
304
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200305#- description: Allow all tcp
306# cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
307# '. /root/keystonercv3; openstack security group rule create --proto tcp --dst-port 22 default'
308# node_name: {{ HOSTNAME_CFG01 }}
309# retry: {count: 1, delay: 30}
310# skip_fail: false
311#
312#- description: Allow all icmp
313# cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
314# '. /root/keystonercv3; openstack security group rule create --proto icmp default'
315# node_name: {{ HOSTNAME_CFG01 }}
316# retry: {count: 1, delay: 30}
317# skip_fail: false
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200318
319- description: sync time
320 cmd: salt --hard-crash --state-output=mixed --state-verbose=False '*' cmd.run
321 'service ntp stop; ntpd -gq; service ntp start'
322 node_name: {{ HOSTNAME_CFG01 }}
323 retry: {count: 1, delay: 30}
324 skip_fail: false
325
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200326# Configure cinder-volume salt-call
327- description: Set disks 01
328 cmd: salt-call cmd.run 'echo -e "nn\np\n\n\n\nw" | fdisk /dev/vdb'
329 node_name: {{ HOSTNAME_CTL01 }}
330 retry: {count: 1, delay: 30}
331 skip_fail: false
332
333- description: Set disks 02
334 cmd: salt-call cmd.run 'echo -e "nn\np\n\n\n\nw" | fdisk /dev/vdb'
335 node_name: {{ HOSTNAME_CTL02 }}
336 retry: {count: 1, delay: 30}
337 skip_fail: false
338
339- description: Set disks 03
340 cmd: salt-call cmd.run 'echo -e "nn\np\n\n\n\nw" | fdisk /dev/vdb'
341 node_name: {{ HOSTNAME_CTL03 }}
342 retry: {count: 1, delay: 30}
343 skip_fail: false
344
345- description: Create partitions 01
346 cmd: salt-call cmd.run 'pvcreate /dev/vdb1'
347 node_name: {{ HOSTNAME_CTL01 }}
348 retry: {count: 1, delay: 30}
349 skip_fail: false
350
351- description: Create partitions 02
352 cmd: salt-call cmd.run 'pvcreate /dev/vdb1'
353 node_name: {{ HOSTNAME_CTL02 }}
354 retry: {count: 1, delay: 30}
355 skip_fail: false
356
357- description: Create partitions 03
358 cmd: salt-call cmd.run 'pvcreate /dev/vdb1'
359 node_name: {{ HOSTNAME_CTL03 }}
360 retry: {count: 1, delay: 30}
361 skip_fail: false
362
363- description: create volume_group
364 cmd: salt "ctl*" cmd.run 'vgcreate cinder-volumes /dev/vdb1'
365 node_name: {{ HOSTNAME_CFG01 }}
366 retry: {count: 1, delay: 30}
367 skip_fail: false
368
369- description: Install cinder-volume
370 cmd: salt 'ctl*' cmd.run 'apt-get install cinder-volume -y'
371 node_name: {{ HOSTNAME_CFG01 }}
372 retry: {count: 1, delay: 30}
373 skip_fail: false
374
375- description: Install crudini
376 cmd: salt "ctl*" cmd.run 'apt-get install crudini -y'
377 node_name: {{ HOSTNAME_CFG01 }}
378 retry: {count: 1, delay: 30}
379 skip_fail: false
380
381- description: Temporary WR set enabled backends value 01
382 cmd: salt-call cmd.run 'crudini --verbose --set /etc/cinder/cinder.conf DEFAULT enabled_backends lvm'
383 node_name: {{ HOSTNAME_CTL01 }}
384 retry: {count: 1, delay: 30}
385 skip_fail: false
386
387- description: Temporary WR set enabled backends value 02
388 cmd: salt-call cmd.run 'crudini --verbose --set /etc/cinder/cinder.conf DEFAULT enabled_backends lvm'
389 node_name: {{ HOSTNAME_CTL02 }}
390 retry: {count: 1, delay: 30}
391 skip_fail: false
392
393- description: Temporary WR set enabled backends value 03
394 cmd: salt-call cmd.run 'crudini --verbose --set /etc/cinder/cinder.conf DEFAULT enabled_backends lvm'
395 node_name: {{ HOSTNAME_CTL03 }}
396 retry: {count: 1, delay: 30}
397 skip_fail: false
398
399- description: Restart cinder volume
400 cmd: |
401 salt -C 'I@cinder:controller' service.restart cinder-volume;
402 node_name: {{ HOSTNAME_CFG01 }}
403 retry: {count: 2, delay: 5}
404 skip_fail: false
405
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200406- description: Install docker.io on gtw
407 cmd: salt-call cmd.run 'apt-get install docker.io -y'
408 node_name: {{ HOSTNAME_GTW01 }}
409 retry: {count: 1, delay: 30}
410 skip_fail: false
411
Tatyana Leontovichd6bcbc92018-03-23 15:02:28 +0200412- description: Enable forward policy
413 cmd: iptables --policy FORWARD ACCEPT
414 node_name: {{ HOSTNAME_GTW01 }}
415 retry: {count: 1, delay: 30}
416 skip_fail: false
417
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200418- description: create rc file on cfg
419 cmd: scp ctl01:/root/keystonercv3 /root
420 node_name: {{ HOSTNAME_CFG01 }}
421 retry: {count: 1, delay: 30}
422 skip_fail: false
423
424- description: Copy rc file
425 cmd: scp /root/keystonercv3 gtw01:/root
426 node_name: {{ HOSTNAME_CFG01 }}
427 retry: {count: 1, delay: 30}
428 skip_fail: false
sgudzbe155c22018-03-22 13:12:13 +0200429
430- description: Install manila-api on first node
431 cmd: |
432 salt -C 'I@manila:api and *01*' state.sls manila.api;
433 node_name: {{ HOSTNAME_CFG01 }}
434 retry: {count: 1, delay: 5}
435 skip_fail: false
436
437- description: Install manila-api on other nodes
438 cmd: |
439 salt -C 'I@manila:api and not *01*' state.sls manila.api;
440 node_name: {{ HOSTNAME_CFG01 }}
441 retry: {count: 1, delay: 5}
442 skip_fail: false
443
444- description: Install manila-scheduler
445 cmd: |
446 salt -C 'I@manila:scheduler' state.sls manila.scheduler;
447 node_name: {{ HOSTNAME_CFG01 }}
448 retry: {count: 1, delay: 5}
449 skip_fail: false
450
451- description: Install manila-share
452 cmd: |
453 salt -C 'I@manila:share' state.sls manila.share;
454 node_name: {{ HOSTNAME_CFG01 }}
455 retry: {count: 1, delay: 5}
456 skip_fail: false
457
sgudzbe155c22018-03-22 13:12:13 +0200458- description: Check manila-services
459 cmd: |
460 salt 'ctl01*' cmd.run '. /root/keystonercv3; manila service-list'
461 node_name: {{ HOSTNAME_CFG01 }}
462 retry: {count: 1, delay: 5}
463 skip_fail: false
464
465- description: Create manila type
466 cmd: |
467 salt 'ctl01*' cmd.run '. /root/keystonercv3; manila type-create default False --is_public True'
468 node_name: {{ HOSTNAME_CFG01 }}
469 retry: {count: 1, delay: 5}
470 skip_fail: false
471
472- description: Create CIFS and NFS share and check it status
473 cmd: |
474 salt 'ctl01*' cmd.run '. /root/keystonercv3; manila create CIFS 1 --share-type=default';
475 salt 'ctl01*' cmd.run '. /root/keystonercv3; manila create NFS 1 --share-type=default';
476 sleep 5;
477 salt 'ctl01*' cmd.run '. /root/keystonercv3; manila list';
478 node_name: {{ HOSTNAME_CFG01 }}
479 retry: {count: 1, delay: 5}
480 skip_fail: false