blob: b2a97e1e420b1403d39c5b7c07d32ffca4b06c79 [file] [log] [blame]
Tatyana Leontovich1e063f02019-05-08 15:06:33 +03001---
2
3heat_template_version: queens
4
5description: MCP environment for heat-cicd-queens-dvr-sl
6
7parameters:
8 instance_domain:
9 type: string
10 default: 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 management_subnet_cidr:
18 type: string
19 management_subnet_pool_start:
20 type: string
21 management_subnet_pool_end:
22 type: string
23 management_subnet_cfg01_ip:
24 type: string
25 management_subnet_gateway_ip:
26 type: string
27
28 key_pair:
29 type: string
30
31 ctl_flavor:
32 type: string
33 cfg_flavor:
34 type: string
35 cid_flavor:
36 type: string
37 kvm_fake_flavor:
38 type: string
39 dbs_flavor:
40 type: string
41 msg_flavor:
42 type: string
43 mon_flavor:
44 type: string
45 log_flavor:
46 type: string
47 mtr_flavor:
48 type: string
49 cmp_flavor:
50 type: string
51 foundation_flavor:
52 type: string
53 cmn_flavor:
54 type: string
55 rgw_flavor:
56 type: string
57 osd_flavor:
58 type: string
59 gtw_flavor:
60 type: string
61 dns_flavor:
62 type: string
63 kmn_flavor:
64 type: string
65 prx_flavor:
66 type: string
67
68 net_public:
69 type: string
70
71resources:
72 networks:
73 type: MCP::Networks
74 properties:
75 stack_name: { get_param: "OS::stack_name" }
76 env_name: { get_param: env_name }
77
78 #flavors:
79 # type: MCP::Flavors
80
81 cfg01_node:
82 type: MCP::MasterNode
83 depends_on: [networks]
84 properties:
85 env_name: { get_param: env_name }
86 mcp_version: { get_param: mcp_version }
87 cfg01_flavor: { get_param: cfg_flavor }
88 instance_name: cfg01
89 instance_domain: {get_param: instance_domain}
90 network: { get_attr: [networks, network] }
91
92 control_cluster:
93 type: MCP::MultipleInstance
94 depends_on: [cfg01_node]
95 properties:
96 env_name: { get_param: env_name }
97 mcp_version: { get_param: mcp_version }
98 instance_domain: {get_param: instance_domain}
99 instance01_name: ctl01
100 instance02_name: ctl02
101 instance03_name: ctl03
102 instance_flavor: {get_param: ctl_flavor}
103 network: { get_attr: [networks, network] }
104 underlay_userdata: { get_file: ./underlay-userdata.yaml }
105 instance01_control_net_static_ip:
106 list_join:
107 - '.'
108 - [ { get_attr: [networks, control_net_prefix] }, '11' ]
109 instance02_control_net_static_ip:
110 list_join:
111 - '.'
112 - [ { get_attr: [networks, control_net_prefix] }, '12' ]
113 instance03_control_net_static_ip:
114 list_join:
115 - '.'
116 - [ { get_attr: [networks, control_net_prefix] }, '13' ]
117
118 instance_config_host: { get_attr: [cfg01_node, instance_address] }
119
120 openstack_database_cluster:
121 type: MCP::MultipleInstance
122 depends_on: [control_cluster]
123 properties:
124 env_name: { get_param: env_name }
125 mcp_version: { get_param: mcp_version }
126 instance_domain: {get_param: instance_domain}
127 instance01_name: dbs01
128 instance02_name: dbs02
129 instance03_name: dbs03
130 instance_flavor: {get_param: dbs_flavor}
131 network: { get_attr: [networks, network] }
132 underlay_userdata: { get_file: ./underlay-userdata.yaml }
133 instance01_control_net_static_ip:
134 list_join:
135 - '.'
136 - [ { get_attr: [networks, control_net_prefix] }, '51' ]
137 instance02_control_net_static_ip:
138 list_join:
139 - '.'
140 - [ { get_attr: [networks, control_net_prefix] }, '52' ]
141 instance03_control_net_static_ip:
142 list_join:
143 - '.'
144 - [ { get_attr: [networks, control_net_prefix] }, '53' ]
145 instance_config_host: { get_attr: [cfg01_node, instance_address] }
146
147 fake_kvm_cluster:
148 type: MCP::MultipleInstance
149 depends_on: [cfg01_node]
150 properties:
151 env_name: { get_param: env_name }
152 mcp_version: { get_param: mcp_version }
153 instance_domain: {get_param: instance_domain}
154 instance01_name: kvm01
155 instance02_name: kvm02
156 instance03_name: kvm03
157 instance_flavor: {get_param: kvm_fake_flavor}
158 network: { get_attr: [networks, network] }
159 underlay_userdata: { get_file: ./underlay-userdata.yaml }
160 instance01_control_net_static_ip:
161 list_join:
162 - '.'
163 - [ { get_attr: [networks, control_net_prefix] }, '241' ]
164 instance02_control_net_static_ip:
165 list_join:
166 - '.'
167 - [ { get_attr: [networks, control_net_prefix] }, '242' ]
168 instance03_control_net_static_ip:
169 list_join:
170 - '.'
171 - [ { get_attr: [networks, control_net_prefix] }, '243' ]
172
173 instance_config_host: { get_attr: [cfg01_node, instance_address] }
174
175 openstack_message_queue_cluster:
176 type: MCP::MultipleInstance
177 depends_on: [openstack_database_cluster]
178 properties:
179 env_name: { get_param: env_name }
180 mcp_version: { get_param: mcp_version }
181 instance_domain: {get_param: instance_domain}
182 instance01_name: msg01
183 instance02_name: msg02
184 instance03_name: msg03
185 instance_flavor: {get_param: msg_flavor}
186 network: { get_attr: [networks, network] }
187 underlay_userdata: { get_file: ./underlay-userdata.yaml }
188 instance01_control_net_static_ip:
189 list_join:
190 - '.'
191 - [ { get_attr: [networks, control_net_prefix] }, '41' ]
192 instance02_control_net_static_ip:
193 list_join:
194 - '.'
195 - [ { get_attr: [networks, control_net_prefix] }, '42' ]
196 instance03_control_net_static_ip:
197 list_join:
198 - '.'
199 - [ { get_attr: [networks, control_net_prefix] }, '43' ]
200 instance_config_host: { get_attr: [cfg01_node, instance_address] }
201
202 cicd_cluster:
203 type: MCP::MultipleInstance
204 depends_on: [cfg01_node]
205 properties:
206 env_name: { get_param: env_name }
207 mcp_version: { get_param: mcp_version }
208 instance_domain: {get_param: instance_domain}
209 instance01_name: cid01
210 instance02_name: cid02
211 instance03_name: cid03
212 instance_flavor: {get_param: cid_flavor}
213 network: { get_attr: [networks, network] }
214 underlay_userdata: { get_file: ./underlay-userdata.yaml }
215 instance01_control_net_static_ip:
216 list_join:
217 - '.'
218 - [ { get_attr: [networks, control_net_prefix] }, '91' ]
219 instance02_control_net_static_ip:
220 list_join:
221 - '.'
222 - [ { get_attr: [networks, control_net_prefix] }, '92' ]
223 instance03_control_net_static_ip:
224 list_join:
225 - '.'
226 - [ { get_attr: [networks, control_net_prefix] }, '93' ]
227
228 instance_config_host: { get_attr: [cfg01_node, instance_address] }
229
230 stacklight_monitor_cluster:
231 type: MCP::MultipleInstance
232 depends_on: [openstack_message_queue_cluster]
233 properties:
234 env_name: { get_param: env_name }
235 mcp_version: { get_param: mcp_version }
236 instance_domain: {get_param: instance_domain}
237 instance01_name: mon01
238 instance02_name: mon02
239 instance03_name: mon03
240 instance_flavor: {get_param: mon_flavor}
241 network: { get_attr: [networks, network] }
242 underlay_userdata: { get_file: ./underlay-userdata.yaml }
243 instance01_control_net_static_ip:
244 list_join:
245 - '.'
246 - [ { get_attr: [networks, control_net_prefix] }, '71' ]
247 instance02_control_net_static_ip:
248 list_join:
249 - '.'
250 - [ { get_attr: [networks, control_net_prefix] }, '72' ]
251 instance03_control_net_static_ip:
252 list_join:
253 - '.'
254 - [ { get_attr: [networks, control_net_prefix] }, '73' ]
255 instance_config_host: { get_attr: [cfg01_node, instance_address] }
256
257 stacklight_log_cluster:
258 type: MCP::MultipleInstance
259 depends_on: [stacklight_monitor_cluster]
260 properties:
261 env_name: { get_param: env_name }
262 mcp_version: { get_param: mcp_version }
263 instance_domain: {get_param: instance_domain}
264 instance01_name: log01
265 instance02_name: log02
266 instance03_name: log03
267 instance_flavor: {get_param: log_flavor}
268 network: { get_attr: [networks, network] }
269 underlay_userdata: { get_file: ./underlay-userdata.yaml }
270 instance01_control_net_static_ip:
271 list_join:
272 - '.'
273 - [ { get_attr: [networks, control_net_prefix] }, '61' ]
274 instance02_control_net_static_ip:
275 list_join:
276 - '.'
277 - [ { get_attr: [networks, control_net_prefix] }, '62' ]
278 instance03_control_net_static_ip:
279 list_join:
280 - '.'
281 - [ { get_attr: [networks, control_net_prefix] }, '63' ]
282 instance_config_host: { get_attr: [cfg01_node, instance_address] }
283
284 stacklight_mtr_cluster:
285 type: MCP::MultipleInstance
286 depends_on: [stacklight_log_cluster]
287 properties:
288 env_name: { get_param: env_name }
289 mcp_version: { get_param: mcp_version }
290 instance_domain: {get_param: instance_domain}
291 instance01_name: mtr01
292 instance02_name: mtr02
293 instance03_name: mtr03
294 instance_flavor: {get_param: mtr_flavor}
295 network: { get_attr: [networks, network] }
296 underlay_userdata: { get_file: ./underlay-userdata.yaml }
297 instance01_control_net_static_ip:
298 list_join:
299 - '.'
300 - [ { get_attr: [networks, control_net_prefix] }, '97' ]
301 instance02_control_net_static_ip:
302 list_join:
303 - '.'
304 - [ { get_attr: [networks, control_net_prefix] }, '98' ]
305 instance03_control_net_static_ip:
306 list_join:
307 - '.'
308 - [ { get_attr: [networks, control_net_prefix] }, '99' ]
309 instance_config_host: { get_attr: [cfg01_node, instance_address] }
310
311 prx01_virtual:
312 type: MCP::SingleInstance
313 depends_on: [control_cluster]
314 properties:
315 env_name: { get_param: env_name }
316 mcp_version: { get_param: mcp_version }
317 instance_domain: {get_param: instance_domain}
318 instance_name: prx01
319 instance_flavor: {get_param: prx_flavor}
320 network: { get_attr: [networks, network] }
321 underlay_userdata: { get_file: ./underlay-userdata.yaml }
322 control_net_static_ip:
323 list_join:
324 - '.'
325 - [ { get_attr: [networks, control_net_prefix] }, '81' ]
326
327 instance_config_host: { get_attr: [cfg01_node, instance_address] }
328
329 prx02_virtual:
330 type: MCP::SingleInstance
331 depends_on: [control_cluster]
332 properties:
333 env_name: { get_param: env_name }
334 mcp_version: { get_param: mcp_version }
335 instance_domain: {get_param: instance_domain}
336 instance_name: prx02
337 instance_flavor: {get_param: prx_flavor}
338 network: { get_attr: [networks, network] }
339 underlay_userdata: { get_file: ./underlay-userdata.yaml }
340 control_net_static_ip:
341 list_join:
342 - '.'
343 - [ { get_attr: [networks, control_net_prefix] }, '82' ]
344
345 instance_config_host: { get_attr: [cfg01_node, instance_address] }
346
347 cmp001_virtual:
348 type: MCP::Compute
349 depends_on: [cfg01_node]
350 properties:
351 env_name: { get_param: env_name }
352 mcp_version: { get_param: mcp_version }
353 instance_domain: {get_param: instance_domain}
354 instance_name: cmp001
355 instance_flavor: {get_param: cmp_flavor}
356 network: { get_attr: [networks, network] }
357 underlay_userdata: { get_file: ./underlay-userdata.yaml }
358 control_net_static_ip:
359 list_join:
360 - '.'
361 - [ { get_attr: [networks, control_net_prefix] }, '101' ]
362 instance_config_host: { get_attr: [cfg01_node, instance_address] }
363
364 cmp002_virtual:
365 type: MCP::Compute
366 depends_on: [cfg01_node]
367 properties:
368 env_name: { get_param: env_name }
369 mcp_version: { get_param: mcp_version }
370 instance_domain: {get_param: instance_domain}
371 instance_name: cmp002
372 instance_flavor: {get_param: cmp_flavor}
373 network: { get_attr: [networks, network] }
374 underlay_userdata: { get_file: ./underlay-userdata.yaml }
375 control_net_static_ip:
376 list_join:
377 - '.'
378 - [ { get_attr: [networks, control_net_prefix] }, '102' ]
379 instance_config_host: { get_attr: [cfg01_node, instance_address] }
380
381 foundation_node:
382 type: MCP::FoundationNode
383 depends_on: [networks]
384 properties:
385 env_name: { get_param: env_name }
386 mcp_version: { get_param: mcp_version }
387 instance_domain: {get_param: instance_domain}
388 instance_name: foundation
389 instance_flavor: {get_param: foundation_flavor}
390 network: { get_attr: [networks, network] }
391 underlay_userdata: { get_file: ./underlay--user-data-foundation.yaml }
392 control_net_static_ip:
393 list_join:
394 - '.'
395 - [ { get_attr: [networks, control_net_prefix] }, '5' ]
396 instance_config_host: { get_attr: [cfg01_node, instance_address] }
397
398 ceph_cmn_cluster:
399 type: MCP::MultipleInstance
400 depends_on: [cfg01_node]
401 properties:
402 env_name: { get_param: env_name }
403 mcp_version: { get_param: mcp_version }
404 instance_domain: {get_param: instance_domain}
405 instance01_name: cmn01
406 instance02_name: cmn02
407 instance03_name: cmn03
408 instance_flavor: {get_param: cmn_flavor}
409 network: { get_attr: [networks, network] }
410 underlay_userdata: { get_file: ./underlay-userdata.yaml }
411 instance01_control_net_static_ip:
412 list_join:
413 - '.'
414 - [ { get_attr: [networks, control_net_prefix] }, '66' ]
415 instance02_control_net_static_ip:
416 list_join:
417 - '.'
418 - [ { get_attr: [networks, control_net_prefix] }, '67' ]
419 instance03_control_net_static_ip:
420 list_join:
421 - '.'
422 - [ { get_attr: [networks, control_net_prefix] }, '68' ]
423 instance_config_host: { get_attr: [cfg01_node, instance_address] }
424
425 ceph_rgw_cluster:
426 type: MCP::MultipleInstance
427 depends_on: [cfg01_node]
428 properties:
429 env_name: { get_param: env_name }
430 mcp_version: { get_param: mcp_version }
431 instance_domain: {get_param: instance_domain}
432 instance01_name: rgw01
433 instance02_name: rgw02
434 instance03_name: rgw03
435 instance_flavor: {get_param: rgw_flavor}
436 network: { get_attr: [networks, network] }
437 underlay_userdata: { get_file: ./underlay-userdata.yaml }
438 instance01_control_net_static_ip:
439 list_join:
440 - '.'
441 - [ { get_attr: [networks, control_net_prefix] }, '76' ]
442 instance02_control_net_static_ip:
443 list_join:
444 - '.'
445 - [ { get_attr: [networks, control_net_prefix] }, '77' ]
446 instance03_control_net_static_ip:
447 list_join:
448 - '.'
449 - [ { get_attr: [networks, control_net_prefix] }, '78' ]
450 instance_config_host: { get_attr: [cfg01_node, instance_address] }
451
452 ceph_osd_cluster:
453 type: MCP::MultipleInstance
454 depends_on: [cfg01_node]
455 properties:
456 env_name: { get_param: env_name }
457 mcp_version: { get_param: mcp_version }
458 instance_domain: {get_param: instance_domain}
459 instance01_name: osd001
460 instance02_name: osd002
461 instance03_name: osd003
462 instance_flavor: {get_param: osd_flavor}
463 network: { get_attr: [networks, network] }
464 underlay_userdata: { get_file: ./underlay-userdata.yaml }
465 instance01_control_net_static_ip:
466 list_join:
467 - '.'
468 - [ { get_attr: [networks, control_net_prefix] }, '201' ]
469 instance02_control_net_static_ip:
470 list_join:
471 - '.'
472 - [ { get_attr: [networks, control_net_prefix] }, '202' ]
473 instance03_control_net_static_ip:
474 list_join:
475 - '.'
476 - [ { get_attr: [networks, control_net_prefix] }, '203' ]
477 instance_config_host: { get_attr: [cfg01_node, instance_address] }
478
479 openstack_gtw_cluster:
480 type: MCP::MultipleInstance
481 depends_on: [cfg01_node]
482 properties:
483 env_name: { get_param: env_name }
484 mcp_version: { get_param: mcp_version }
485 instance_domain: {get_param: instance_domain}
486 instance01_name: gtw01
487 instance02_name: gtw02
488 instance03_name: gtw03
489 instance_flavor: {get_param: gtw_flavor}
490 network: { get_attr: [networks, network] }
491 underlay_userdata: { get_file: ./underlay-userdata.yaml }
492 instance01_control_net_static_ip:
493 list_join:
494 - '.'
495 - [ { get_attr: [networks, control_net_prefix] }, '224' ]
496 instance02_control_net_static_ip:
497 list_join:
498 - '.'
499 - [ { get_attr: [networks, control_net_prefix] }, '225' ]
500 instance03_control_net_static_ip:
501 list_join:
502 - '.'
503 - [ { get_attr: [networks, control_net_prefix] }, '226' ]
504 instance_config_host: { get_attr: [cfg01_node, instance_address] }
505
506 openstack_barbican_cluster:
507 type: MCP::MultipleInstance
508 depends_on: [control_cluster]
509 properties:
510 env_name: { get_param: env_name }
511 mcp_version: { get_param: mcp_version }
512 instance_domain: {get_param: instance_domain}
513 instance01_name: kmn01
514 instance02_name: kmn02
515 instance03_name: kmn03
516 instance_flavor: {get_param: kmn_flavor}
517 network: { get_attr: [networks, network] }
518 underlay_userdata: { get_file: ./underlay-userdata.yaml }
519 instance01_control_net_static_ip:
520 list_join:
521 - '.'
522 - [ { get_attr: [networks, control_net_prefix] }, '45' ]
523 instance02_control_net_static_ip:
524 list_join:
525 - '.'
526 - [ { get_attr: [networks, control_net_prefix] }, '46' ]
527 instance03_control_net_static_ip:
528 list_join:
529 - '.'
530 - [ { get_attr: [networks, control_net_prefix] }, '47' ]
531 instance_config_host: { get_attr: [cfg01_node, instance_address] }
532
533 dns01_virtual:
534 type: MCP::SingleInstance
535 depends_on: [control_cluster]
536 properties:
537 env_name: { get_param: env_name }
538 mcp_version: { get_param: mcp_version }
539 instance_domain: {get_param: instance_domain}
540 instance_name: dns01
541 instance_flavor: {get_param: dns_flavor}
542 network: { get_attr: [networks, network] }
543 underlay_userdata: { get_file: ./underlay-userdata.yaml }
544 control_net_static_ip:
545 list_join:
546 - '.'
547 - [ { get_attr: [networks, control_net_prefix] }, '113' ]
548
549 instance_config_host: { get_attr: [cfg01_node, instance_address] }
550
551 dns02_virtual:
552 type: MCP::SingleInstance
553 depends_on: [control_cluster]
554 properties:
555 env_name: { get_param: env_name }
556 mcp_version: { get_param: mcp_version }
557 instance_domain: {get_param: instance_domain}
558 instance_name: dns02
559 instance_flavor: {get_param: dns_flavor}
560 network: { get_attr: [networks, network] }
561 underlay_userdata: { get_file: ./underlay-userdata.yaml }
562 control_net_static_ip:
563 list_join:
564 - '.'
565 - [ { get_attr: [networks, control_net_prefix] }, '114' ]
566
567 instance_config_host: { get_attr: [cfg01_node, instance_address] }
568
569outputs:
570
571 control_subnet_cidr:
572 description: Control network CIDR
573 value: { get_param: control_subnet_cidr }
574
575 management_subnet_cidr:
576 description: Admin network CIDR
577 value: { get_param: management_subnet_cidr }
578
579 foundation_floating:
580 description: foundation node IP address (floating) from external network
581 value:
582 get_attr:
583 - foundation_node
584 - instance_floating_address
585...