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