blob: 88997d7adb33999b216621e20e3d268e3e6b036d [file] [log] [blame]
Sergey Galkinbbc30f82019-12-10 14:33:15 +04001---
2
3heat_template_version: queens
4
5description: MCP environment for released-heat-cicd-queens-dvr-sl
6
7parameters:
8 instance_domain:
9 type: string
10 default: released-heat-cicd-queens-dvr-sl.local
11 mcp_version:
12 type: string
13 env_name:
14 type: string
15 control_subnet_cidr:
16 type: string
17 default: "10.6.0.0/24"
18 tenant_subnet_cidr:
19 type: string
20 default: "10.8.0.0/24"
21 external_subnet_cidr:
22 type: string
23 default: "10.9.0.0/16"
24 management_subnet_cidr:
25 type: string
26 default: "10.7.0.0/24"
27 management_subnet_cfg01_ip:
28 type: string
29 default: 10.7.0.15
30 management_subnet_gateway_ip:
31 type: string
32 default: 10.7.0.1
33 management_subnet_pool_start:
34 type: string
35 default: 10.7.0.20
36 management_subnet_pool_end:
37 type: string
38 default: 10.7.0.90
39 salt_master_control_ip:
40 type: string
41 default: 10.6.0.15
Hanna Arhipova31cb1d82021-01-27 09:41:11 +020042 deploy_empty_node:
43 type: boolean
44 default: False
Sergey Galkinbbc30f82019-12-10 14:33:15 +040045
46 key_pair:
47 type: string
48
49 ctl_flavor:
50 type: string
51 cfg_flavor:
52 type: string
53 cid_flavor:
54 type: string
55 kvm_fake_flavor:
56 type: string
57 dbs_flavor:
58 type: string
59 msg_flavor:
60 type: string
61 mon_flavor:
62 type: string
63 log_flavor:
64 type: string
65 mtr_flavor:
66 type: string
67 cmp_flavor:
68 type: string
69 foundation_flavor:
70 type: string
71 cmn_flavor:
72 type: string
73 rgw_flavor:
74 type: string
75 osd_flavor:
76 type: string
77 gtw_flavor:
78 type: string
79 dns_flavor:
80 type: string
81 kmn_flavor:
82 type: string
83 prx_flavor:
84 type: string
85 mdb_flavor:
86 type: string
87
88 net_public:
89 type: string
90
91 foundation_image:
92 type: string
93
94 bm_availability_zone:
95 type: string
96 vm_availability_zone:
97 type: string
98
99resources:
100 networks:
101 type: MCP::Networks
102 properties:
103 stack_name: { get_param: "OS::stack_name" }
104 env_name: { get_param: env_name }
105 subnets:
106 depends_on: [networks]
Hanna Arhipova609c9912020-11-18 15:04:41 +0200107 type: MCP::SubnetsWithFloating
Sergey Galkinbbc30f82019-12-10 14:33:15 +0400108 properties:
109 stack_name: { get_param: "OS::stack_name" }
110 env_name: { get_param: env_name }
111 management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] }
112 control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] }
113 tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] }
114 external_net: { list_join: ['-', [ 'external_net', { get_param: env_name } ]] }
115 control_subnet_cidr: { get_param: control_subnet_cidr }
116 tenant_subnet_cidr: { get_param: tenant_subnet_cidr }
117 external_subnet_cidr: { get_param: external_subnet_cidr }
118 management_subnet_cidr: { get_param: management_subnet_cidr }
119 management_subnet_gateway_ip: { get_param: management_subnet_gateway_ip }
120 management_subnet_pool_start: { get_param: management_subnet_pool_start }
121 management_subnet_pool_end: { get_param: management_subnet_pool_end }
122
123 #flavors:
124 # type: MCP::Flavors
125
126 cfg01_node:
127 type: MCP::MasterNode
128 depends_on: [subnets]
129 properties:
130 env_name: { get_param: env_name }
131 mcp_version: { get_param: mcp_version }
132 cfg01_flavor: { get_param: cfg_flavor }
133 availability_zone: { get_param: bm_availability_zone }
134 management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] }
135 control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] }
136 tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] }
137 external_net: { list_join: ['-', [ 'external_net', { get_param: env_name } ]] }
138 salt_master_control_ip: { get_param: salt_master_control_ip }
139 management_subnet_cfg01_ip: { get_param: management_subnet_cfg01_ip }
140 tenant_net_static_ip:
141 list_join:
142 - '.'
143 - [ { get_attr: [subnets, tenant_net_prefix] }, '15' ]
144 external_net_static_ip:
145 list_join:
146 - '.'
147 - [ { get_attr: [subnets, external_net_prefix] }, '15' ]
148 instance_name: cfg01
149 instance_domain: {get_param: instance_domain}
150
151 control_cluster:
152 type: MCP::MultipleInstance
153 depends_on: [cfg01_node]
154 properties:
155 env_name: { get_param: env_name }
156 mcp_version: { get_param: mcp_version }
157 instance_domain: {get_param: instance_domain}
158 instance01_name: ctl01
159 instance02_name: ctl02
160 instance03_name: ctl03
161 instance_flavor: {get_param: ctl_flavor}
162 availability_zone: { get_param: vm_availability_zone }
163 underlay_userdata: { get_file: ./underlay-userdata.yaml }
164 instance01_control_net_static_ip:
165 list_join:
166 - '.'
167 - [ { get_attr: [subnets, control_net_prefix] }, '11' ]
168 instance02_control_net_static_ip:
169 list_join:
170 - '.'
171 - [ { get_attr: [subnets, control_net_prefix] }, '12' ]
172 instance03_control_net_static_ip:
173 list_join:
174 - '.'
175 - [ { get_attr: [subnets, control_net_prefix] }, '13' ]
176 instance01_tenant_net_static_ip:
177 list_join:
178 - '.'
179 - [ { get_attr: [subnets, tenant_net_prefix] }, '11' ]
180 instance02_tenant_net_static_ip:
181 list_join:
182 - '.'
183 - [ { get_attr: [subnets, tenant_net_prefix] }, '12' ]
184 instance03_tenant_net_static_ip:
185 list_join:
186 - '.'
187 - [ { get_attr: [subnets, tenant_net_prefix] }, '13' ]
188 instance01_external_net_static_ip:
189 list_join:
190 - '.'
191 - [ { get_attr: [subnets, external_net_prefix] }, '11' ]
192 instance02_external_net_static_ip:
193 list_join:
194 - '.'
195 - [ { get_attr: [subnets, external_net_prefix] }, '12' ]
196 instance03_external_net_static_ip:
197 list_join:
198 - '.'
199 - [ { get_attr: [subnets, external_net_prefix] }, '13' ]
200
201 instance_config_host: { get_attr: [cfg01_node, instance_address] }
202
203 openstack_database_cluster:
204 type: MCP::MultipleInstance
205 depends_on: [control_cluster]
206 properties:
207 env_name: { get_param: env_name }
208 mcp_version: { get_param: mcp_version }
209 instance_domain: {get_param: instance_domain}
210 instance01_name: dbs01
211 instance02_name: dbs02
212 instance03_name: dbs03
213 instance_flavor: {get_param: dbs_flavor}
214 availability_zone: { get_param: vm_availability_zone }
215 underlay_userdata: { get_file: ./underlay-userdata.yaml }
216 instance01_control_net_static_ip:
217 list_join:
218 - '.'
219 - [ { get_attr: [subnets, control_net_prefix] }, '51' ]
220 instance02_control_net_static_ip:
221 list_join:
222 - '.'
223 - [ { get_attr: [subnets, control_net_prefix] }, '52' ]
224 instance03_control_net_static_ip:
225 list_join:
226 - '.'
227 - [ { get_attr: [subnets, control_net_prefix] }, '53' ]
228 instance01_tenant_net_static_ip:
229 list_join:
230 - '.'
231 - [ { get_attr: [subnets, tenant_net_prefix] }, '51' ]
232 instance02_tenant_net_static_ip:
233 list_join:
234 - '.'
235 - [ { get_attr: [subnets, tenant_net_prefix] }, '52' ]
236 instance03_tenant_net_static_ip:
237 list_join:
238 - '.'
239 - [ { get_attr: [subnets, tenant_net_prefix] }, '53' ]
240 instance01_external_net_static_ip:
241 list_join:
242 - '.'
243 - [ { get_attr: [subnets, external_net_prefix] }, '51' ]
244 instance02_external_net_static_ip:
245 list_join:
246 - '.'
247 - [ { get_attr: [subnets, external_net_prefix] }, '52' ]
248 instance03_external_net_static_ip:
249 list_join:
250 - '.'
251 - [ { get_attr: [subnets, external_net_prefix] }, '53' ]
252
253 instance_config_host: { get_attr: [cfg01_node, instance_address] }
254
255 fake_kvm_cluster:
256 type: MCP::MultipleInstance
257 depends_on: [cfg01_node]
258 properties:
259 env_name: { get_param: env_name }
260 mcp_version: { get_param: mcp_version }
261 instance_domain: {get_param: instance_domain}
262 instance01_name: kvm01
263 instance02_name: kvm02
264 instance03_name: kvm03
265 instance_flavor: {get_param: kvm_fake_flavor}
266 availability_zone: { get_param: vm_availability_zone }
267 underlay_userdata: { get_file: ./underlay-userdata.yaml }
268 instance01_control_net_static_ip:
269 list_join:
270 - '.'
271 - [ { get_attr: [subnets, control_net_prefix] }, '241' ]
272 instance02_control_net_static_ip:
273 list_join:
274 - '.'
275 - [ { get_attr: [subnets, control_net_prefix] }, '242' ]
276 instance03_control_net_static_ip:
277 list_join:
278 - '.'
279 - [ { get_attr: [subnets, control_net_prefix] }, '243' ]
280 instance01_tenant_net_static_ip:
281 list_join:
282 - '.'
283 - [ { get_attr: [subnets, tenant_net_prefix] }, '241' ]
284 instance02_tenant_net_static_ip:
285 list_join:
286 - '.'
287 - [ { get_attr: [subnets, tenant_net_prefix] }, '242' ]
288 instance03_tenant_net_static_ip:
289 list_join:
290 - '.'
291 - [ { get_attr: [subnets, tenant_net_prefix] }, '243' ]
292 instance01_external_net_static_ip:
293 list_join:
294 - '.'
295 - [ { get_attr: [subnets, external_net_prefix] }, '241' ]
296 instance02_external_net_static_ip:
297 list_join:
298 - '.'
299 - [ { get_attr: [subnets, external_net_prefix] }, '242' ]
300 instance03_external_net_static_ip:
301 list_join:
302 - '.'
303 - [ { get_attr: [subnets, external_net_prefix] }, '243' ]
304
305 instance_config_host: { get_attr: [cfg01_node, instance_address] }
306
307 openstack_message_queue_cluster:
308 type: MCP::MultipleInstance
309 depends_on: [openstack_database_cluster]
310 properties:
311 env_name: { get_param: env_name }
312 mcp_version: { get_param: mcp_version }
313 instance_domain: {get_param: instance_domain}
314 instance01_name: msg01
315 instance02_name: msg02
316 instance03_name: msg03
317 instance_flavor: {get_param: msg_flavor}
318 availability_zone: { get_param: vm_availability_zone }
319 underlay_userdata: { get_file: ./underlay-userdata.yaml }
320 instance01_control_net_static_ip:
321 list_join:
322 - '.'
323 - [ { get_attr: [subnets, control_net_prefix] }, '41' ]
324 instance02_control_net_static_ip:
325 list_join:
326 - '.'
327 - [ { get_attr: [subnets, control_net_prefix] }, '42' ]
328 instance03_control_net_static_ip:
329 list_join:
330 - '.'
331 - [ { get_attr: [subnets, control_net_prefix] }, '43' ]
332 instance01_tenant_net_static_ip:
333 list_join:
334 - '.'
335 - [ { get_attr: [subnets, tenant_net_prefix] }, '41' ]
336 instance02_tenant_net_static_ip:
337 list_join:
338 - '.'
339 - [ { get_attr: [subnets, tenant_net_prefix] }, '42' ]
340 instance03_tenant_net_static_ip:
341 list_join:
342 - '.'
343 - [ { get_attr: [subnets, tenant_net_prefix] }, '43' ]
344 instance01_external_net_static_ip:
345 list_join:
346 - '.'
347 - [ { get_attr: [subnets, external_net_prefix] }, '41' ]
348 instance02_external_net_static_ip:
349 list_join:
350 - '.'
351 - [ { get_attr: [subnets, external_net_prefix] }, '42' ]
352 instance03_external_net_static_ip:
353 list_join:
354 - '.'
355 - [ { get_attr: [subnets, external_net_prefix] }, '43' ]
356
357 instance_config_host: { get_attr: [cfg01_node, instance_address] }
358
359 cicd_cluster:
360 type: MCP::MultipleInstance
361 depends_on: [cfg01_node]
362 properties:
363 env_name: { get_param: env_name }
364 mcp_version: { get_param: mcp_version }
365 instance_domain: {get_param: instance_domain}
366 instance01_name: cid01
367 instance02_name: cid02
368 instance03_name: cid03
369 instance_flavor: {get_param: cid_flavor}
370 availability_zone: { get_param: vm_availability_zone }
371 underlay_userdata: { get_file: ./underlay-userdata.yaml }
372 instance01_control_net_static_ip:
373 list_join:
374 - '.'
375 - [ { get_attr: [subnets, control_net_prefix] }, '91' ]
376 instance02_control_net_static_ip:
377 list_join:
378 - '.'
379 - [ { get_attr: [subnets, control_net_prefix] }, '92' ]
380 instance03_control_net_static_ip:
381 list_join:
382 - '.'
383 - [ { get_attr: [subnets, control_net_prefix] }, '93' ]
384 instance01_tenant_net_static_ip:
385 list_join:
386 - '.'
387 - [ { get_attr: [subnets, tenant_net_prefix] }, '91' ]
388 instance02_tenant_net_static_ip:
389 list_join:
390 - '.'
391 - [ { get_attr: [subnets, tenant_net_prefix] }, '92' ]
392 instance03_tenant_net_static_ip:
393 list_join:
394 - '.'
395 - [ { get_attr: [subnets, tenant_net_prefix] }, '93' ]
396 instance01_external_net_static_ip:
397 list_join:
398 - '.'
399 - [ { get_attr: [subnets, external_net_prefix] }, '91' ]
400 instance02_external_net_static_ip:
401 list_join:
402 - '.'
403 - [ { get_attr: [subnets, external_net_prefix] }, '92' ]
404 instance03_external_net_static_ip:
405 list_join:
406 - '.'
407 - [ { get_attr: [subnets, external_net_prefix] }, '93' ]
408
409 instance_config_host: { get_attr: [cfg01_node, instance_address] }
410
411 stacklight_monitor_cluster:
412 type: MCP::MultipleInstance
413 depends_on: [openstack_message_queue_cluster]
414 properties:
415 env_name: { get_param: env_name }
416 mcp_version: { get_param: mcp_version }
417 instance_domain: {get_param: instance_domain}
418 instance01_name: mon01
419 instance02_name: mon02
420 instance03_name: mon03
421 instance_flavor: {get_param: mon_flavor}
422 availability_zone: { get_param: vm_availability_zone }
423 underlay_userdata: { get_file: ./underlay-userdata.yaml }
424 instance01_control_net_static_ip:
425 list_join:
426 - '.'
427 - [ { get_attr: [subnets, control_net_prefix] }, '71' ]
428 instance02_control_net_static_ip:
429 list_join:
430 - '.'
431 - [ { get_attr: [subnets, control_net_prefix] }, '72' ]
432 instance03_control_net_static_ip:
433 list_join:
434 - '.'
435 - [ { get_attr: [subnets, control_net_prefix] }, '73' ]
436 instance01_tenant_net_static_ip:
437 list_join:
438 - '.'
439 - [ { get_attr: [subnets, tenant_net_prefix] }, '71' ]
440 instance02_tenant_net_static_ip:
441 list_join:
442 - '.'
443 - [ { get_attr: [subnets, tenant_net_prefix] }, '72' ]
444 instance03_tenant_net_static_ip:
445 list_join:
446 - '.'
447 - [ { get_attr: [subnets, tenant_net_prefix] }, '73' ]
448 instance01_external_net_static_ip:
449 list_join:
450 - '.'
451 - [ { get_attr: [subnets, external_net_prefix] }, '71' ]
452 instance02_external_net_static_ip:
453 list_join:
454 - '.'
455 - [ { get_attr: [subnets, external_net_prefix] }, '72' ]
456 instance03_external_net_static_ip:
457 list_join:
458 - '.'
459 - [ { get_attr: [subnets, external_net_prefix] }, '73' ]
460
461 instance_config_host: { get_attr: [cfg01_node, instance_address] }
462
463 stacklight_log_cluster:
464 type: MCP::MultipleInstance
465 depends_on: [stacklight_monitor_cluster]
466 properties:
467 env_name: { get_param: env_name }
468 mcp_version: { get_param: mcp_version }
469 instance_domain: {get_param: instance_domain}
470 instance01_name: log01
471 instance02_name: log02
472 instance03_name: log03
473 instance_flavor: {get_param: log_flavor}
474 availability_zone: { get_param: vm_availability_zone }
475 underlay_userdata: { get_file: ./underlay-userdata.yaml }
476 instance01_control_net_static_ip:
477 list_join:
478 - '.'
479 - [ { get_attr: [subnets, control_net_prefix] }, '61' ]
480 instance02_control_net_static_ip:
481 list_join:
482 - '.'
483 - [ { get_attr: [subnets, control_net_prefix] }, '62' ]
484 instance03_control_net_static_ip:
485 list_join:
486 - '.'
487 - [ { get_attr: [subnets, control_net_prefix] }, '63' ]
488 instance01_tenant_net_static_ip:
489 list_join:
490 - '.'
491 - [ { get_attr: [subnets, tenant_net_prefix] }, '61' ]
492 instance02_tenant_net_static_ip:
493 list_join:
494 - '.'
495 - [ { get_attr: [subnets, tenant_net_prefix] }, '62' ]
496 instance03_tenant_net_static_ip:
497 list_join:
498 - '.'
499 - [ { get_attr: [subnets, tenant_net_prefix] }, '63' ]
500 instance01_external_net_static_ip:
501 list_join:
502 - '.'
503 - [ { get_attr: [subnets, external_net_prefix] }, '61' ]
504 instance02_external_net_static_ip:
505 list_join:
506 - '.'
507 - [ { get_attr: [subnets, external_net_prefix] }, '62' ]
508 instance03_external_net_static_ip:
509 list_join:
510 - '.'
511 - [ { get_attr: [subnets, external_net_prefix] }, '63' ]
512
513 instance_config_host: { get_attr: [cfg01_node, instance_address] }
514
515 stacklight_mtr_cluster:
516 type: MCP::MultipleInstance
517 depends_on: [stacklight_log_cluster]
518 properties:
519 env_name: { get_param: env_name }
520 mcp_version: { get_param: mcp_version }
521 instance_domain: {get_param: instance_domain}
522 instance01_name: mtr01
523 instance02_name: mtr02
524 instance03_name: mtr03
525 instance_flavor: {get_param: mtr_flavor}
526 availability_zone: { get_param: vm_availability_zone }
527 underlay_userdata: { get_file: ./underlay-userdata.yaml }
528 instance01_control_net_static_ip:
529 list_join:
530 - '.'
531 - [ { get_attr: [subnets, control_net_prefix] }, '97' ]
532 instance02_control_net_static_ip:
533 list_join:
534 - '.'
535 - [ { get_attr: [subnets, control_net_prefix] }, '98' ]
536 instance03_control_net_static_ip:
537 list_join:
538 - '.'
539 - [ { get_attr: [subnets, control_net_prefix] }, '99' ]
540 instance01_tenant_net_static_ip:
541 list_join:
542 - '.'
543 - [ { get_attr: [subnets, tenant_net_prefix] }, '97' ]
544 instance02_tenant_net_static_ip:
545 list_join:
546 - '.'
547 - [ { get_attr: [subnets, tenant_net_prefix] }, '98' ]
548 instance03_tenant_net_static_ip:
549 list_join:
550 - '.'
551 - [ { get_attr: [subnets, tenant_net_prefix] }, '99' ]
552 instance01_external_net_static_ip:
553 list_join:
554 - '.'
555 - [ { get_attr: [subnets, external_net_prefix] }, '97' ]
556 instance02_external_net_static_ip:
557 list_join:
558 - '.'
559 - [ { get_attr: [subnets, external_net_prefix] }, '98' ]
560 instance03_external_net_static_ip:
561 list_join:
562 - '.'
563 - [ { get_attr: [subnets, external_net_prefix] }, '99' ]
564
565 instance_config_host: { get_attr: [cfg01_node, instance_address] }
566
567 prx01_virtual:
568 type: MCP::SingleInstance
569 depends_on: [control_cluster]
570 properties:
571 env_name: { get_param: env_name }
572 mcp_version: { get_param: mcp_version }
573 instance_domain: {get_param: instance_domain}
574 instance_name: prx01
575 instance_flavor: {get_param: prx_flavor}
576 availability_zone: { get_param: vm_availability_zone }
577 underlay_userdata: { get_file: ./underlay-userdata.yaml }
578 control_net_static_ip:
579 list_join:
580 - '.'
581 - [ { get_attr: [subnets, control_net_prefix] }, '81' ]
582 tenant_net_static_ip:
583 list_join:
584 - '.'
585 - [ { get_attr: [subnets, tenant_net_prefix] }, '81' ]
586 external_net_static_ip:
587 list_join:
588 - '.'
589 - [ { get_attr: [subnets, external_net_prefix] }, '81' ]
590
591 instance_config_host: { get_attr: [cfg01_node, instance_address] }
592
593 prx02_virtual:
594 type: MCP::SingleInstance
595 depends_on: [control_cluster]
596 properties:
597 env_name: { get_param: env_name }
598 mcp_version: { get_param: mcp_version }
599 instance_domain: {get_param: instance_domain}
600 instance_name: prx02
601 instance_flavor: {get_param: prx_flavor}
602 availability_zone: { get_param: vm_availability_zone }
603 underlay_userdata: { get_file: ./underlay-userdata.yaml }
604 control_net_static_ip:
605 list_join:
606 - '.'
607 - [ { get_attr: [subnets, control_net_prefix] }, '82' ]
608 tenant_net_static_ip:
609 list_join:
610 - '.'
611 - [ { get_attr: [subnets, tenant_net_prefix] }, '82' ]
612 external_net_static_ip:
613 list_join:
614 - '.'
615 - [ { get_attr: [subnets, external_net_prefix] }, '82' ]
616
617 instance_config_host: { get_attr: [cfg01_node, instance_address] }
618
619 cmp001_virtual:
620 type: MCP::Compute
621 depends_on: [cfg01_node]
622 properties:
623 env_name: { get_param: env_name }
624 mcp_version: { get_param: mcp_version }
625 instance_domain: {get_param: instance_domain}
626 instance_name: cmp001
627 instance_flavor: {get_param: cmp_flavor}
628 availability_zone: { get_param: vm_availability_zone }
629 underlay_userdata: { get_file: ./underlay-userdata.yaml }
630 control_net_static_ip:
631 list_join:
632 - '.'
633 - [ { get_attr: [subnets, control_net_prefix] }, '101' ]
634 tenant_net_static_ip:
635 list_join:
636 - '.'
637 - [ { get_attr: [subnets, tenant_net_prefix] }, '101' ]
638 external_net_static_ip:
639 list_join:
640 - '.'
641 - [ { get_attr: [subnets, external_net_prefix] }, '101' ]
642
643 instance_config_host: { get_attr: [cfg01_node, instance_address] }
644
645 cmp002_virtual:
646 type: MCP::Compute
647 depends_on: [cfg01_node]
648 properties:
649 env_name: { get_param: env_name }
650 mcp_version: { get_param: mcp_version }
651 instance_domain: {get_param: instance_domain}
652 instance_name: cmp002
653 instance_flavor: {get_param: cmp_flavor}
654 availability_zone: { get_param: vm_availability_zone }
655 underlay_userdata: { get_file: ./underlay-userdata.yaml }
656 control_net_static_ip:
657 list_join:
658 - '.'
659 - [ { get_attr: [subnets, control_net_prefix] }, '102' ]
660 tenant_net_static_ip:
661 list_join:
662 - '.'
663 - [ { get_attr: [subnets, tenant_net_prefix] }, '102' ]
664 external_net_static_ip:
665 list_join:
666 - '.'
667 - [ { get_attr: [subnets, external_net_prefix] }, '102' ]
668
669 instance_config_host: { get_attr: [cfg01_node, instance_address] }
670
671 foundation_node:
Hanna Arhipova609c9912020-11-18 15:04:41 +0200672 type: MCP::FoundationNodeWithFloating
Sergey Galkinbbc30f82019-12-10 14:33:15 +0400673 depends_on: [subnets]
674 properties:
675 env_name: { get_param: env_name }
676 mcp_version: { get_param: mcp_version }
677 instance_domain: {get_param: instance_domain}
678 instance_name: foundation
679 instance_image: { get_param: foundation_image }
680 instance_flavor: {get_param: foundation_flavor}
681 availability_zone: { get_param: bm_availability_zone }
682 management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] }
683 control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] }
684 tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] }
685 external_net: { list_join: ['-', [ 'external_net', { get_param: env_name } ]] }
686 management_subnet_gateway_ip: { get_param: management_subnet_gateway_ip }
687 underlay_userdata: { get_file: ./underlay--user-data-foundation.yaml }
688 management_net_static_ip:
689 list_join:
690 - '.'
691 - [ { get_attr: [subnets, management_net_prefix] }, '5' ]
692 control_net_static_ip:
693 list_join:
694 - '.'
695 - [ { get_attr: [subnets, control_net_prefix] }, '5' ]
696 tenant_net_static_ip:
697 list_join:
698 - '.'
699 - [ { get_attr: [subnets, tenant_net_prefix] }, '5' ]
700 external_net_static_ip:
701 list_join:
702 - '.'
703 - [ { get_attr: [subnets, external_net_prefix] }, '5' ]
704
705 instance_config_host: { get_attr: [cfg01_node, instance_address] }
706
707 ceph_cmn_cluster:
708 type: MCP::MultipleInstance
709 depends_on: [cfg01_node]
710 properties:
711 env_name: { get_param: env_name }
712 mcp_version: { get_param: mcp_version }
713 instance_domain: {get_param: instance_domain}
714 instance01_name: cmn01
715 instance02_name: cmn02
716 instance03_name: cmn03
717 instance_flavor: {get_param: cmn_flavor}
718 availability_zone: { get_param: vm_availability_zone }
719 underlay_userdata: { get_file: ./underlay-userdata.yaml }
720 instance01_control_net_static_ip:
721 list_join:
722 - '.'
723 - [ { get_attr: [subnets, control_net_prefix] }, '66' ]
724 instance02_control_net_static_ip:
725 list_join:
726 - '.'
727 - [ { get_attr: [subnets, control_net_prefix] }, '67' ]
728 instance03_control_net_static_ip:
729 list_join:
730 - '.'
731 - [ { get_attr: [subnets, control_net_prefix] }, '68' ]
732 instance01_tenant_net_static_ip:
733 list_join:
734 - '.'
735 - [ { get_attr: [subnets, tenant_net_prefix] }, '66' ]
736 instance02_tenant_net_static_ip:
737 list_join:
738 - '.'
739 - [ { get_attr: [subnets, tenant_net_prefix] }, '67' ]
740 instance03_tenant_net_static_ip:
741 list_join:
742 - '.'
743 - [ { get_attr: [subnets, tenant_net_prefix] }, '68' ]
744 instance01_external_net_static_ip:
745 list_join:
746 - '.'
747 - [ { get_attr: [subnets, external_net_prefix] }, '66' ]
748 instance02_external_net_static_ip:
749 list_join:
750 - '.'
751 - [ { get_attr: [subnets, external_net_prefix] }, '67' ]
752 instance03_external_net_static_ip:
753 list_join:
754 - '.'
755 - [ { get_attr: [subnets, external_net_prefix] }, '68' ]
756
757 instance_config_host: { get_attr: [cfg01_node, instance_address] }
758
759 ceph_rgw_cluster:
760 type: MCP::MultipleInstance
761 depends_on: [cfg01_node]
762 properties:
763 env_name: { get_param: env_name }
764 mcp_version: { get_param: mcp_version }
765 instance_domain: {get_param: instance_domain}
766 instance01_name: rgw01
767 instance02_name: rgw02
768 instance03_name: rgw03
769 instance_flavor: {get_param: rgw_flavor}
770 availability_zone: { get_param: vm_availability_zone }
771 underlay_userdata: { get_file: ./underlay-userdata.yaml }
772 instance01_control_net_static_ip:
773 list_join:
774 - '.'
775 - [ { get_attr: [subnets, control_net_prefix] }, '76' ]
776 instance02_control_net_static_ip:
777 list_join:
778 - '.'
779 - [ { get_attr: [subnets, control_net_prefix] }, '77' ]
780 instance03_control_net_static_ip:
781 list_join:
782 - '.'
783 - [ { get_attr: [subnets, control_net_prefix] }, '78' ]
784 instance01_tenant_net_static_ip:
785 list_join:
786 - '.'
787 - [ { get_attr: [subnets, tenant_net_prefix] }, '76' ]
788 instance02_tenant_net_static_ip:
789 list_join:
790 - '.'
791 - [ { get_attr: [subnets, tenant_net_prefix] }, '77' ]
792 instance03_tenant_net_static_ip:
793 list_join:
794 - '.'
795 - [ { get_attr: [subnets, tenant_net_prefix] }, '78' ]
796 instance01_external_net_static_ip:
797 list_join:
798 - '.'
799 - [ { get_attr: [subnets, external_net_prefix] }, '76' ]
800 instance02_external_net_static_ip:
801 list_join:
802 - '.'
803 - [ { get_attr: [subnets, external_net_prefix] }, '77' ]
804 instance03_external_net_static_ip:
805 list_join:
806 - '.'
807 - [ { get_attr: [subnets, external_net_prefix] }, '78' ]
808
809 instance_config_host: { get_attr: [cfg01_node, instance_address] }
810
811 ceph_osd_cluster:
dtsapikovf0309252020-04-09 23:15:34 +0400812 type: MCP::MultipleInstance2Volumes
Sergey Galkinbbc30f82019-12-10 14:33:15 +0400813 depends_on: [cfg01_node]
814 properties:
815 env_name: { get_param: env_name }
816 mcp_version: { get_param: mcp_version }
817 instance_domain: {get_param: instance_domain}
818 instance01_name: osd001
819 instance02_name: osd002
820 instance03_name: osd003
821 instance_flavor: {get_param: osd_flavor}
822 availability_zone: { get_param: vm_availability_zone }
823 underlay_userdata: { get_file: ./underlay-userdata.yaml }
824 instance01_control_net_static_ip:
825 list_join:
826 - '.'
827 - [ { get_attr: [subnets, control_net_prefix] }, '201' ]
828 instance02_control_net_static_ip:
829 list_join:
830 - '.'
831 - [ { get_attr: [subnets, control_net_prefix] }, '202' ]
832 instance03_control_net_static_ip:
833 list_join:
834 - '.'
835 - [ { get_attr: [subnets, control_net_prefix] }, '203' ]
836 instance01_tenant_net_static_ip:
837 list_join:
838 - '.'
839 - [ { get_attr: [subnets, tenant_net_prefix] }, '201' ]
840 instance02_tenant_net_static_ip:
841 list_join:
842 - '.'
843 - [ { get_attr: [subnets, tenant_net_prefix] }, '202' ]
844 instance03_tenant_net_static_ip:
845 list_join:
846 - '.'
847 - [ { get_attr: [subnets, tenant_net_prefix] }, '203' ]
848 instance01_external_net_static_ip:
849 list_join:
850 - '.'
851 - [ { get_attr: [subnets, external_net_prefix] }, '201' ]
852 instance02_external_net_static_ip:
853 list_join:
854 - '.'
855 - [ { get_attr: [subnets, external_net_prefix] }, '202' ]
856 instance03_external_net_static_ip:
857 list_join:
858 - '.'
859 - [ { get_attr: [subnets, external_net_prefix] }, '203' ]
860
861 instance_config_host: { get_attr: [cfg01_node, instance_address] }
862
863 openstack_gtw_cluster:
864 type: MCP::MultipleInstance
865 depends_on: [cfg01_node]
866 properties:
867 env_name: { get_param: env_name }
868 mcp_version: { get_param: mcp_version }
869 instance_domain: {get_param: instance_domain}
870 instance01_name: gtw01
871 instance02_name: gtw02
872 instance03_name: gtw03
873 instance_flavor: {get_param: gtw_flavor}
874 availability_zone: { get_param: vm_availability_zone }
875 underlay_userdata: { get_file: ./underlay-userdata.yaml }
876 instance01_control_net_static_ip:
877 list_join:
878 - '.'
879 - [ { get_attr: [subnets, control_net_prefix] }, '224' ]
880 instance02_control_net_static_ip:
881 list_join:
882 - '.'
883 - [ { get_attr: [subnets, control_net_prefix] }, '225' ]
884 instance03_control_net_static_ip:
885 list_join:
886 - '.'
887 - [ { get_attr: [subnets, control_net_prefix] }, '226' ]
888 instance01_tenant_net_static_ip:
889 list_join:
890 - '.'
891 - [ { get_attr: [subnets, tenant_net_prefix] }, '224' ]
892 instance02_tenant_net_static_ip:
893 list_join:
894 - '.'
895 - [ { get_attr: [subnets, tenant_net_prefix] }, '225' ]
896 instance03_tenant_net_static_ip:
897 list_join:
898 - '.'
899 - [ { get_attr: [subnets, tenant_net_prefix] }, '226' ]
900 instance01_external_net_static_ip:
901 list_join:
902 - '.'
903 - [ { get_attr: [subnets, external_net_prefix] }, '224' ]
904 instance02_external_net_static_ip:
905 list_join:
906 - '.'
907 - [ { get_attr: [subnets, external_net_prefix] }, '225' ]
908 instance03_external_net_static_ip:
909 list_join:
910 - '.'
911 - [ { get_attr: [subnets, external_net_prefix] }, '226' ]
912
913 instance_config_host: { get_attr: [cfg01_node, instance_address] }
914
915 openstack_barbican_cluster:
916 type: MCP::MultipleInstance
917 depends_on: [control_cluster]
918 properties:
919 env_name: { get_param: env_name }
920 mcp_version: { get_param: mcp_version }
921 instance_domain: {get_param: instance_domain}
922 instance01_name: kmn01
923 instance02_name: kmn02
924 instance03_name: kmn03
925 instance_flavor: {get_param: kmn_flavor}
926 availability_zone: { get_param: vm_availability_zone }
927 underlay_userdata: { get_file: ./underlay-userdata.yaml }
928 instance01_control_net_static_ip:
929 list_join:
930 - '.'
931 - [ { get_attr: [subnets, control_net_prefix] }, '45' ]
932 instance02_control_net_static_ip:
933 list_join:
934 - '.'
935 - [ { get_attr: [subnets, control_net_prefix] }, '46' ]
936 instance03_control_net_static_ip:
937 list_join:
938 - '.'
939 - [ { get_attr: [subnets, control_net_prefix] }, '47' ]
940 instance01_tenant_net_static_ip:
941 list_join:
942 - '.'
943 - [ { get_attr: [subnets, tenant_net_prefix] }, '45' ]
944 instance02_tenant_net_static_ip:
945 list_join:
946 - '.'
947 - [ { get_attr: [subnets, tenant_net_prefix] }, '46' ]
948 instance03_tenant_net_static_ip:
949 list_join:
950 - '.'
951 - [ { get_attr: [subnets, tenant_net_prefix] }, '47' ]
952 instance01_external_net_static_ip:
953 list_join:
954 - '.'
955 - [ { get_attr: [subnets, external_net_prefix] }, '45' ]
956 instance02_external_net_static_ip:
957 list_join:
958 - '.'
959 - [ { get_attr: [subnets, external_net_prefix] }, '46' ]
960 instance03_external_net_static_ip:
961 list_join:
962 - '.'
963 - [ { get_attr: [subnets, external_net_prefix] }, '47' ]
964
965 instance_config_host: { get_attr: [cfg01_node, instance_address] }
966
967 dns01_virtual:
968 type: MCP::SingleInstance
969 depends_on: [control_cluster]
970 properties:
971 env_name: { get_param: env_name }
972 mcp_version: { get_param: mcp_version }
973 instance_domain: {get_param: instance_domain}
974 instance_name: dns01
975 instance_flavor: {get_param: dns_flavor}
976 availability_zone: { get_param: vm_availability_zone }
977 underlay_userdata: { get_file: ./underlay-userdata.yaml }
978 control_net_static_ip:
979 list_join:
980 - '.'
981 - [ { get_attr: [subnets, control_net_prefix] }, '113' ]
982 tenant_net_static_ip:
983 list_join:
984 - '.'
985 - [ { get_attr: [subnets, tenant_net_prefix] }, '113' ]
986 external_net_static_ip:
987 list_join:
988 - '.'
989 - [ { get_attr: [subnets, external_net_prefix] }, '113' ]
990
991 instance_config_host: { get_attr: [cfg01_node, instance_address] }
992
993 dns02_virtual:
994 type: MCP::SingleInstance
995 depends_on: [control_cluster]
996 properties:
997 env_name: { get_param: env_name }
998 mcp_version: { get_param: mcp_version }
999 instance_domain: {get_param: instance_domain}
1000 instance_name: dns02
1001 instance_flavor: {get_param: dns_flavor}
1002 availability_zone: { get_param: vm_availability_zone }
1003 underlay_userdata: { get_file: ./underlay-userdata.yaml }
1004 control_net_static_ip:
1005 list_join:
1006 - '.'
1007 - [ { get_attr: [subnets, control_net_prefix] }, '114' ]
1008 tenant_net_static_ip:
1009 list_join:
1010 - '.'
1011 - [ { get_attr: [subnets, tenant_net_prefix] }, '114' ]
1012 external_net_static_ip:
1013 list_join:
1014 - '.'
1015 - [ { get_attr: [subnets, external_net_prefix] }, '114' ]
1016
1017 instance_config_host: { get_attr: [cfg01_node, instance_address] }
1018
1019 openstack_telemetry_cluster:
1020 type: MCP::MultipleInstance
1021 depends_on: [control_cluster]
1022 properties:
1023 env_name: { get_param: env_name }
1024 mcp_version: { get_param: mcp_version }
1025 instance_domain: {get_param: instance_domain}
1026 instance01_name: mdb01
1027 instance02_name: mdb02
1028 instance03_name: mdb03
1029 instance_flavor: {get_param: mdb_flavor}
1030 availability_zone: { get_param: vm_availability_zone }
1031 underlay_userdata: { get_file: ./underlay-userdata.yaml }
1032 instance01_control_net_static_ip:
1033 list_join:
1034 - '.'
1035 - [ { get_attr: [subnets, control_net_prefix] }, '84' ]
1036 instance02_control_net_static_ip:
1037 list_join:
1038 - '.'
1039 - [ { get_attr: [subnets, control_net_prefix] }, '85' ]
1040 instance03_control_net_static_ip:
1041 list_join:
1042 - '.'
1043 - [ { get_attr: [subnets, control_net_prefix] }, '86' ]
1044 instance01_tenant_net_static_ip:
1045 list_join:
1046 - '.'
1047 - [ { get_attr: [subnets, tenant_net_prefix] }, '84' ]
1048 instance02_tenant_net_static_ip:
1049 list_join:
1050 - '.'
1051 - [ { get_attr: [subnets, tenant_net_prefix] }, '85' ]
1052 instance03_tenant_net_static_ip:
1053 list_join:
1054 - '.'
1055 - [ { get_attr: [subnets, tenant_net_prefix] }, '86' ]
1056 instance01_external_net_static_ip:
1057 list_join:
1058 - '.'
1059 - [ { get_attr: [subnets, external_net_prefix] }, '84' ]
1060 instance02_external_net_static_ip:
1061 list_join:
1062 - '.'
1063 - [ { get_attr: [subnets, external_net_prefix] }, '85' ]
1064 instance03_external_net_static_ip:
1065 list_join:
1066 - '.'
1067 - [ { get_attr: [subnets, external_net_prefix] }, '86' ]
1068
1069 instance_config_host: { get_attr: [cfg01_node, instance_address] }
1070
Hanna Arhipova31cb1d82021-01-27 09:41:11 +02001071 empty_node:
1072 type: MCP::SingleInstance2Volumes
1073 depends_on: [cfg01_node]
1074 condition: { get_param: deploy_empty_node }
1075 properties:
1076 env_name: { get_param: env_name }
1077 mcp_version: { get_param: mcp_version }
1078 instance_domain: {get_param: instance_domain}
1079 instance_name: xtra
1080 role: none
1081 instance_flavor: {get_param: osd_flavor}
1082 availability_zone: { get_param: vm_availability_zone }
1083 underlay_userdata: { get_file: ./underlay-userdata.yaml }
1084 control_net_static_ip:
1085 list_join:
1086 - '.'
1087 - [ { get_attr: [subnets, control_net_prefix] }, '205' ]
1088 tenant_net_static_ip:
1089 list_join:
1090 - '.'
1091 - [ { get_attr: [subnets, tenant_net_prefix] }, '205' ]
1092 external_net_static_ip:
1093 list_join:
1094 - '.'
1095 - [ { get_attr: [subnets, external_net_prefix] }, '205' ]
1096
1097 instance_config_host: { get_attr: [cfg01_node, instance_address] }
1098
1099
Sergey Galkinbbc30f82019-12-10 14:33:15 +04001100outputs:
1101 foundation_public_ip:
1102 description: foundation node IP address (floating) from external network
1103 value:
1104 get_attr:
1105 - foundation_node
1106 - instance_floating_address
1107...