blob: 6bf5b776d7435e0b67358dd052c0052b71864c4f [file] [log] [blame]
sgudze8442722019-05-08 10:38:04 +03001---
2
3heat_template_version: queens
4
5description: MCP environment for heat-cicd-k8s-contrail41-sl
6
7parameters:
8 instance_domain:
9 type: string
10 default: heat-cicd-k8s-contrail41-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 mon_flavor:
40 type: string
41 log_flavor:
42 type: string
43 mtr_flavor:
44 type: string
45 cmp_flavor:
46 type: string
47 cmn_flavor:
48 type: string
49 rgw_flavor:
50 type: string
51 osd_flavor:
52 type: string
53 foundation_flavor:
54 type: string
55
56 net_public:
57 type: string
58
Dennis Dmitrievcba86122019-05-24 13:41:46 +030059 foundation_image:
60 type: string
61
sgudze8442722019-05-08 10:38:04 +030062resources:
63 networks:
64 type: MCP::Networks
65 properties:
66 stack_name: { get_param: "OS::stack_name" }
67 env_name: { get_param: env_name }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +030068 subnets:
69 depends_on: [networks]
70 type: MCP::Subnets
71 properties:
72 stack_name: { get_param: "OS::stack_name" }
73 env_name: { get_param: env_name }
74 management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] }
75 control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] }
76 tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] }
77 external_net: { list_join: ['-', [ 'external_net', { get_param: env_name } ]] }
sgudze8442722019-05-08 10:38:04 +030078
79 #flavors:
80 # type: MCP::Flavors
81
82 cfg01_node:
83 type: MCP::MasterNode
84 depends_on: [networks]
85 properties:
86 env_name: { get_param: env_name }
87 mcp_version: { get_param: mcp_version }
88 cfg01_flavor: { get_param: cfg_flavor }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +030089 management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] }
90 control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] }
91 tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] }
92 external_net: { list_join: ['-', [ 'external_net', { get_param: env_name } ]] }
sgudze6bff762019-05-23 18:15:49 +030093 tenant_net_static_ip:
94 list_join:
95 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +030096 - [ { get_attr: [subnets, tenant_net_prefix] }, '15' ]
sgudze6bff762019-05-23 18:15:49 +030097 external_net_static_ip:
98 list_join:
99 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300100 - [ { get_attr: [subnets, external_net_prefix] }, '15' ]
sgudze8442722019-05-08 10:38:04 +0300101 instance_name: cfg01
102 instance_domain: {get_param: instance_domain}
sgudze8442722019-05-08 10:38:04 +0300103
104 control_cluster:
105 type: MCP::MultipleInstance
106 depends_on: [cfg01_node]
107 properties:
108 env_name: { get_param: env_name }
109 mcp_version: { get_param: mcp_version }
110 instance_domain: {get_param: instance_domain}
111 instance01_name: ctl01
112 instance02_name: ctl02
113 instance03_name: ctl03
sgudz917e8d92019-05-21 16:20:02 +0300114 instance01_role: k8s_controller
sgudze8442722019-05-08 10:38:04 +0300115 instance_flavor: {get_param: ctl_flavor}
sgudze8442722019-05-08 10:38:04 +0300116 underlay_userdata: { get_file: ./underlay-userdata.yaml }
117 instance01_control_net_static_ip:
118 list_join:
119 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300120 - [ { get_attr: [subnets, control_net_prefix] }, '11' ]
sgudze8442722019-05-08 10:38:04 +0300121 instance02_control_net_static_ip:
122 list_join:
123 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300124 - [ { get_attr: [subnets, control_net_prefix] }, '12' ]
sgudze8442722019-05-08 10:38:04 +0300125 instance03_control_net_static_ip:
126 list_join:
127 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300128 - [ { get_attr: [subnets, control_net_prefix] }, '13' ]
sgudze6bff762019-05-23 18:15:49 +0300129 instance01_tenant_net_static_ip:
130 list_join:
131 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300132 - [ { get_attr: [subnets, tenant_net_prefix] }, '11' ]
sgudze6bff762019-05-23 18:15:49 +0300133 instance02_tenant_net_static_ip:
134 list_join:
135 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300136 - [ { get_attr: [subnets, tenant_net_prefix] }, '12' ]
sgudze6bff762019-05-23 18:15:49 +0300137 instance03_tenant_net_static_ip:
138 list_join:
139 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300140 - [ { get_attr: [subnets, tenant_net_prefix] }, '13' ]
sgudze6bff762019-05-23 18:15:49 +0300141 instance01_external_net_static_ip:
142 list_join:
143 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300144 - [ { get_attr: [subnets, external_net_prefix] }, '11' ]
sgudze6bff762019-05-23 18:15:49 +0300145 instance02_external_net_static_ip:
146 list_join:
147 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300148 - [ { get_attr: [subnets, external_net_prefix] }, '12' ]
sgudze6bff762019-05-23 18:15:49 +0300149 instance03_external_net_static_ip:
150 list_join:
151 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300152 - [ { get_attr: [subnets, external_net_prefix] }, '13' ]
sgudze8442722019-05-08 10:38:04 +0300153
154 instance_config_host: { get_attr: [cfg01_node, instance_address] }
155
156 fake_kvm_cluster:
157 type: MCP::MultipleInstance
158 depends_on: [cfg01_node]
159 properties:
160 env_name: { get_param: env_name }
161 mcp_version: { get_param: mcp_version }
162 instance_domain: {get_param: instance_domain}
163 instance01_name: kvm01
164 instance02_name: kvm02
165 instance03_name: kvm03
166 instance_flavor: {get_param: kvm_fake_flavor}
sgudze8442722019-05-08 10:38:04 +0300167 underlay_userdata: { get_file: ./underlay-userdata.yaml }
168 instance01_control_net_static_ip:
169 list_join:
170 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300171 - [ { get_attr: [subnets, control_net_prefix] }, '241' ]
sgudze8442722019-05-08 10:38:04 +0300172 instance02_control_net_static_ip:
173 list_join:
174 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300175 - [ { get_attr: [subnets, control_net_prefix] }, '242' ]
sgudze8442722019-05-08 10:38:04 +0300176 instance03_control_net_static_ip:
177 list_join:
178 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300179 - [ { get_attr: [subnets, control_net_prefix] }, '243' ]
sgudze6bff762019-05-23 18:15:49 +0300180 instance01_tenant_net_static_ip:
181 list_join:
182 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300183 - [ { get_attr: [subnets, tenant_net_prefix] }, '241' ]
sgudze6bff762019-05-23 18:15:49 +0300184 instance02_tenant_net_static_ip:
185 list_join:
186 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300187 - [ { get_attr: [subnets, tenant_net_prefix] }, '242' ]
sgudze6bff762019-05-23 18:15:49 +0300188 instance03_tenant_net_static_ip:
189 list_join:
190 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300191 - [ { get_attr: [subnets, tenant_net_prefix] }, '243' ]
sgudze6bff762019-05-23 18:15:49 +0300192 instance01_external_net_static_ip:
193 list_join:
194 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300195 - [ { get_attr: [subnets, external_net_prefix] }, '241' ]
sgudze6bff762019-05-23 18:15:49 +0300196 instance02_external_net_static_ip:
197 list_join:
198 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300199 - [ { get_attr: [subnets, external_net_prefix] }, '242' ]
sgudze6bff762019-05-23 18:15:49 +0300200 instance03_external_net_static_ip:
201 list_join:
202 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300203 - [ { get_attr: [subnets, external_net_prefix] }, '243' ]
sgudze8442722019-05-08 10:38:04 +0300204
205 instance_config_host: { get_attr: [cfg01_node, instance_address] }
206
207 cicd_cluster:
208 type: MCP::MultipleInstance
209 depends_on: [cfg01_node]
210 properties:
211 env_name: { get_param: env_name }
212 mcp_version: { get_param: mcp_version }
213 instance_domain: {get_param: instance_domain}
214 instance01_name: cid01
215 instance02_name: cid02
216 instance03_name: cid03
217 instance_flavor: {get_param: cid_flavor}
sgudze8442722019-05-08 10:38:04 +0300218 underlay_userdata: { get_file: ./underlay-userdata.yaml }
219 instance01_control_net_static_ip:
220 list_join:
221 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300222 - [ { get_attr: [subnets, control_net_prefix] }, '91' ]
sgudze8442722019-05-08 10:38:04 +0300223 instance02_control_net_static_ip:
224 list_join:
225 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300226 - [ { get_attr: [subnets, control_net_prefix] }, '92' ]
sgudze8442722019-05-08 10:38:04 +0300227 instance03_control_net_static_ip:
228 list_join:
229 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300230 - [ { get_attr: [subnets, control_net_prefix] }, '93' ]
sgudze6bff762019-05-23 18:15:49 +0300231 instance01_tenant_net_static_ip:
232 list_join:
233 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300234 - [ { get_attr: [subnets, tenant_net_prefix] }, '91' ]
sgudze6bff762019-05-23 18:15:49 +0300235 instance02_tenant_net_static_ip:
236 list_join:
237 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300238 - [ { get_attr: [subnets, tenant_net_prefix] }, '92' ]
sgudze6bff762019-05-23 18:15:49 +0300239 instance03_tenant_net_static_ip:
240 list_join:
241 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300242 - [ { get_attr: [subnets, tenant_net_prefix] }, '93' ]
sgudze6bff762019-05-23 18:15:49 +0300243 instance01_external_net_static_ip:
244 list_join:
245 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300246 - [ { get_attr: [subnets, external_net_prefix] }, '91' ]
sgudze6bff762019-05-23 18:15:49 +0300247 instance02_external_net_static_ip:
248 list_join:
249 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300250 - [ { get_attr: [subnets, external_net_prefix] }, '92' ]
sgudze6bff762019-05-23 18:15:49 +0300251 instance03_external_net_static_ip:
252 list_join:
253 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300254 - [ { get_attr: [subnets, external_net_prefix] }, '93' ]
sgudze8442722019-05-08 10:38:04 +0300255
256 instance_config_host: { get_attr: [cfg01_node, instance_address] }
257
258 stacklight_monitor_cluster:
259 type: MCP::MultipleInstance
260 depends_on: [openstack_message_queue_cluster]
261 properties:
262 env_name: { get_param: env_name }
263 mcp_version: { get_param: mcp_version }
264 instance_domain: {get_param: instance_domain}
265 instance01_name: mon01
266 instance02_name: mon02
267 instance03_name: mon03
268 instance_flavor: {get_param: mon_flavor}
sgudze8442722019-05-08 10:38:04 +0300269 underlay_userdata: { get_file: ./underlay-userdata.yaml }
270 instance01_control_net_static_ip:
271 list_join:
272 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300273 - [ { get_attr: [subnets, control_net_prefix] }, '71' ]
sgudze8442722019-05-08 10:38:04 +0300274 instance02_control_net_static_ip:
275 list_join:
276 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300277 - [ { get_attr: [subnets, control_net_prefix] }, '72' ]
sgudze8442722019-05-08 10:38:04 +0300278 instance03_control_net_static_ip:
279 list_join:
280 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300281 - [ { get_attr: [subnets, control_net_prefix] }, '73' ]
sgudze6bff762019-05-23 18:15:49 +0300282 instance01_tenant_net_static_ip:
283 list_join:
284 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300285 - [ { get_attr: [subnets, tenant_net_prefix] }, '71' ]
sgudze6bff762019-05-23 18:15:49 +0300286 instance02_tenant_net_static_ip:
287 list_join:
288 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300289 - [ { get_attr: [subnets, tenant_net_prefix] }, '72' ]
sgudze6bff762019-05-23 18:15:49 +0300290 instance03_tenant_net_static_ip:
291 list_join:
292 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300293 - [ { get_attr: [subnets, tenant_net_prefix] }, '73' ]
sgudze6bff762019-05-23 18:15:49 +0300294 instance01_external_net_static_ip:
295 list_join:
296 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300297 - [ { get_attr: [subnets, external_net_prefix] }, '71' ]
sgudze6bff762019-05-23 18:15:49 +0300298 instance02_external_net_static_ip:
299 list_join:
300 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300301 - [ { get_attr: [subnets, external_net_prefix] }, '72' ]
sgudze6bff762019-05-23 18:15:49 +0300302 instance03_external_net_static_ip:
303 list_join:
304 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300305 - [ { get_attr: [subnets, external_net_prefix] }, '73' ]
sgudze6bff762019-05-23 18:15:49 +0300306
sgudze8442722019-05-08 10:38:04 +0300307 instance_config_host: { get_attr: [cfg01_node, instance_address] }
308
309 stacklight_log_cluster:
310 type: MCP::MultipleInstance
311 depends_on: [stacklight_monitor_cluster]
312 properties:
313 env_name: { get_param: env_name }
314 mcp_version: { get_param: mcp_version }
315 instance_domain: {get_param: instance_domain}
316 instance01_name: log01
317 instance02_name: log02
318 instance03_name: log03
319 instance_flavor: {get_param: log_flavor}
sgudze8442722019-05-08 10:38:04 +0300320 underlay_userdata: { get_file: ./underlay-userdata.yaml }
321 instance01_control_net_static_ip:
322 list_join:
323 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300324 - [ { get_attr: [subnets, control_net_prefix] }, '61' ]
sgudze8442722019-05-08 10:38:04 +0300325 instance02_control_net_static_ip:
326 list_join:
327 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300328 - [ { get_attr: [subnets, control_net_prefix] }, '62' ]
sgudze8442722019-05-08 10:38:04 +0300329 instance03_control_net_static_ip:
330 list_join:
331 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300332 - [ { get_attr: [subnets, control_net_prefix] }, '63' ]
sgudze6bff762019-05-23 18:15:49 +0300333 instance01_tenant_net_static_ip:
334 list_join:
335 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300336 - [ { get_attr: [subnets, tenant_net_prefix] }, '61' ]
sgudze6bff762019-05-23 18:15:49 +0300337 instance02_tenant_net_static_ip:
338 list_join:
339 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300340 - [ { get_attr: [subnets, tenant_net_prefix] }, '62' ]
sgudze6bff762019-05-23 18:15:49 +0300341 instance03_tenant_net_static_ip:
342 list_join:
343 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300344 - [ { get_attr: [subnets, tenant_net_prefix] }, '63' ]
sgudze6bff762019-05-23 18:15:49 +0300345 instance01_external_net_static_ip:
346 list_join:
347 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300348 - [ { get_attr: [subnets, external_net_prefix] }, '61' ]
sgudze6bff762019-05-23 18:15:49 +0300349 instance02_external_net_static_ip:
350 list_join:
351 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300352 - [ { get_attr: [subnets, external_net_prefix] }, '62' ]
sgudze6bff762019-05-23 18:15:49 +0300353 instance03_external_net_static_ip:
354 list_join:
355 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300356 - [ { get_attr: [subnets, external_net_prefix] }, '63' ]
sgudze6bff762019-05-23 18:15:49 +0300357
sgudze8442722019-05-08 10:38:04 +0300358 instance_config_host: { get_attr: [cfg01_node, instance_address] }
359
360 stacklight_mtr_cluster:
361 type: MCP::MultipleInstance
362 depends_on: [stacklight_log_cluster]
363 properties:
364 env_name: { get_param: env_name }
365 mcp_version: { get_param: mcp_version }
366 instance_domain: {get_param: instance_domain}
367 instance01_name: mtr01
368 instance02_name: mtr02
369 instance03_name: mtr03
370 instance_flavor: {get_param: mtr_flavor}
sgudze8442722019-05-08 10:38:04 +0300371 underlay_userdata: { get_file: ./underlay-userdata.yaml }
372 instance01_control_net_static_ip:
373 list_join:
374 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300375 - [ { get_attr: [subnets, control_net_prefix] }, '86' ]
sgudze8442722019-05-08 10:38:04 +0300376 instance02_control_net_static_ip:
377 list_join:
378 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300379 - [ { get_attr: [subnets, control_net_prefix] }, '87' ]
sgudze8442722019-05-08 10:38:04 +0300380 instance03_control_net_static_ip:
381 list_join:
382 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300383 - [ { get_attr: [subnets, control_net_prefix] }, '88' ]
sgudze6bff762019-05-23 18:15:49 +0300384 instance01_tenant_net_static_ip:
385 list_join:
386 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300387 - [ { get_attr: [subnets, tenant_net_prefix] }, '86' ]
sgudze6bff762019-05-23 18:15:49 +0300388 instance02_tenant_net_static_ip:
389 list_join:
390 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300391 - [ { get_attr: [subnets, tenant_net_prefix] }, '87' ]
sgudze6bff762019-05-23 18:15:49 +0300392 instance03_tenant_net_static_ip:
393 list_join:
394 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300395 - [ { get_attr: [subnets, tenant_net_prefix] }, '88' ]
sgudze6bff762019-05-23 18:15:49 +0300396 instance01_external_net_static_ip:
397 list_join:
398 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300399 - [ { get_attr: [subnets, external_net_prefix] }, '86' ]
sgudze6bff762019-05-23 18:15:49 +0300400 instance02_external_net_static_ip:
401 list_join:
402 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300403 - [ { get_attr: [subnets, external_net_prefix] }, '87' ]
sgudze6bff762019-05-23 18:15:49 +0300404 instance03_external_net_static_ip:
405 list_join:
406 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300407 - [ { get_attr: [subnets, external_net_prefix] }, '88' ]
sgudze6bff762019-05-23 18:15:49 +0300408
sgudze8442722019-05-08 10:38:04 +0300409 instance_config_host: { get_attr: [cfg01_node, instance_address] }
410
411 ceph_cmn_cluster:
412 type: MCP::MultipleInstance
413 depends_on: [cfg01_node]
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: cmn01
419 instance02_name: cmn02
420 instance03_name: cmn03
421 instance_flavor: {get_param: cmn_flavor}
sgudze8442722019-05-08 10:38:04 +0300422 underlay_userdata: { get_file: ./underlay-userdata.yaml }
423 instance01_control_net_static_ip:
424 list_join:
425 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300426 - [ { get_attr: [subnets, control_net_prefix] }, '66' ]
sgudze8442722019-05-08 10:38:04 +0300427 instance02_control_net_static_ip:
428 list_join:
429 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300430 - [ { get_attr: [subnets, control_net_prefix] }, '67' ]
sgudze8442722019-05-08 10:38:04 +0300431 instance03_control_net_static_ip:
432 list_join:
433 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300434 - [ { get_attr: [subnets, control_net_prefix] }, '68' ]
sgudze6bff762019-05-23 18:15:49 +0300435 instance01_tenant_net_static_ip:
436 list_join:
437 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300438 - [ { get_attr: [subnets, tenant_net_prefix] }, '66' ]
sgudze6bff762019-05-23 18:15:49 +0300439 instance02_tenant_net_static_ip:
440 list_join:
441 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300442 - [ { get_attr: [subnets, tenant_net_prefix] }, '67' ]
sgudze6bff762019-05-23 18:15:49 +0300443 instance03_tenant_net_static_ip:
444 list_join:
445 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300446 - [ { get_attr: [subnets, tenant_net_prefix] }, '68' ]
sgudze6bff762019-05-23 18:15:49 +0300447 instance01_external_net_static_ip:
448 list_join:
449 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300450 - [ { get_attr: [subnets, external_net_prefix] }, '66' ]
sgudze6bff762019-05-23 18:15:49 +0300451 instance02_external_net_static_ip:
452 list_join:
453 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300454 - [ { get_attr: [subnets, external_net_prefix] }, '67' ]
sgudze6bff762019-05-23 18:15:49 +0300455 instance03_external_net_static_ip:
456 list_join:
457 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300458 - [ { get_attr: [subnets, external_net_prefix] }, '68' ]
sgudze6bff762019-05-23 18:15:49 +0300459
sgudze8442722019-05-08 10:38:04 +0300460 instance_config_host: { get_attr: [cfg01_node, instance_address] }
461
462 ceph_rgw_cluster:
463 type: MCP::MultipleInstance
464 depends_on: [cfg01_node]
465 properties:
466 env_name: { get_param: env_name }
467 mcp_version: { get_param: mcp_version }
468 instance_domain: {get_param: instance_domain}
469 instance01_name: rgw01
470 instance02_name: rgw02
471 instance03_name: rgw03
472 instance_flavor: {get_param: rgw_flavor}
sgudze8442722019-05-08 10:38:04 +0300473 underlay_userdata: { get_file: ./underlay-userdata.yaml }
474 instance01_control_net_static_ip:
475 list_join:
476 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300477 - [ { get_attr: [subnets, control_net_prefix] }, '76' ]
sgudze8442722019-05-08 10:38:04 +0300478 instance02_control_net_static_ip:
479 list_join:
480 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300481 - [ { get_attr: [subnets, control_net_prefix] }, '77' ]
sgudze8442722019-05-08 10:38:04 +0300482 instance03_control_net_static_ip:
483 list_join:
484 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300485 - [ { get_attr: [subnets, control_net_prefix] }, '78' ]
sgudze6bff762019-05-23 18:15:49 +0300486 instance01_tenant_net_static_ip:
487 list_join:
488 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300489 - [ { get_attr: [subnets, tenant_net_prefix] }, '76' ]
sgudze6bff762019-05-23 18:15:49 +0300490 instance02_tenant_net_static_ip:
491 list_join:
492 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300493 - [ { get_attr: [subnets, tenant_net_prefix] }, '77' ]
sgudze6bff762019-05-23 18:15:49 +0300494 instance03_tenant_net_static_ip:
495 list_join:
496 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300497 - [ { get_attr: [subnets, tenant_net_prefix] }, '78' ]
sgudze6bff762019-05-23 18:15:49 +0300498 instance01_external_net_static_ip:
499 list_join:
500 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300501 - [ { get_attr: [subnets, external_net_prefix] }, '76' ]
sgudze6bff762019-05-23 18:15:49 +0300502 instance02_external_net_static_ip:
503 list_join:
504 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300505 - [ { get_attr: [subnets, external_net_prefix] }, '77' ]
sgudze6bff762019-05-23 18:15:49 +0300506 instance03_external_net_static_ip:
507 list_join:
508 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300509 - [ { get_attr: [subnets, external_net_prefix] }, '78' ]
sgudze6bff762019-05-23 18:15:49 +0300510
sgudze8442722019-05-08 10:38:04 +0300511 instance_config_host: { get_attr: [cfg01_node, instance_address] }
512
513 ceph_osd_cluster:
514 type: MCP::MultipleInstance
515 depends_on: [cfg01_node]
516 properties:
517 env_name: { get_param: env_name }
518 mcp_version: { get_param: mcp_version }
519 instance_domain: {get_param: instance_domain}
520 instance01_name: osd001
521 instance02_name: osd002
522 instance03_name: osd003
523 instance_flavor: {get_param: osd_flavor}
sgudze8442722019-05-08 10:38:04 +0300524 underlay_userdata: { get_file: ./underlay-userdata.yaml }
525 instance01_control_net_static_ip:
526 list_join:
527 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300528 - [ { get_attr: [subnets, control_net_prefix] }, '201' ]
sgudze8442722019-05-08 10:38:04 +0300529 instance02_control_net_static_ip:
530 list_join:
531 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300532 - [ { get_attr: [subnets, control_net_prefix] }, '202' ]
sgudze8442722019-05-08 10:38:04 +0300533 instance03_control_net_static_ip:
534 list_join:
535 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300536 - [ { get_attr: [subnets, control_net_prefix] }, '203' ]
sgudze6bff762019-05-23 18:15:49 +0300537 instance01_tenant_net_static_ip:
538 list_join:
539 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300540 - [ { get_attr: [subnets, tenant_net_prefix] }, '201' ]
sgudze6bff762019-05-23 18:15:49 +0300541 instance02_tenant_net_static_ip:
542 list_join:
543 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300544 - [ { get_attr: [subnets, tenant_net_prefix] }, '202' ]
sgudze6bff762019-05-23 18:15:49 +0300545 instance03_tenant_net_static_ip:
546 list_join:
547 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300548 - [ { get_attr: [subnets, tenant_net_prefix] }, '203' ]
sgudze6bff762019-05-23 18:15:49 +0300549 instance01_external_net_static_ip:
550 list_join:
551 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300552 - [ { get_attr: [subnets, external_net_prefix] }, '201' ]
sgudze6bff762019-05-23 18:15:49 +0300553 instance02_external_net_static_ip:
554 list_join:
555 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300556 - [ { get_attr: [subnets, external_net_prefix] }, '202' ]
sgudze6bff762019-05-23 18:15:49 +0300557 instance03_external_net_static_ip:
558 list_join:
559 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300560 - [ { get_attr: [subnets, external_net_prefix] }, '203' ]
sgudze6bff762019-05-23 18:15:49 +0300561
sgudze8442722019-05-08 10:38:04 +0300562 instance_config_host: { get_attr: [cfg01_node, instance_address] }
563
564 prx01_virtual:
565 type: MCP::SingleInstance
566 depends_on: [control_cluster]
567 properties:
568 env_name: { get_param: env_name }
569 mcp_version: { get_param: mcp_version }
570 instance_domain: {get_param: instance_domain}
571 instance_name: prx01
572 instance_flavor: {get_param: cid_flavor}
sgudze8442722019-05-08 10:38:04 +0300573 underlay_userdata: { get_file: ./underlay-userdata.yaml }
574 control_net_static_ip:
575 list_join:
576 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300577 - [ { get_attr: [subnets, control_net_prefix] }, '221' ]
sgudze6bff762019-05-23 18:15:49 +0300578 tenant_net_static_ip:
579 list_join:
580 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300581 - [ { get_attr: [subnets, tenant_net_prefix] }, '221' ]
sgudze6bff762019-05-23 18:15:49 +0300582 external_net_static_ip:
583 list_join:
584 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300585 - [ { get_attr: [subnets, external_net_prefix] }, '221' ]
sgudze6bff762019-05-23 18:15:49 +0300586
sgudze8442722019-05-08 10:38:04 +0300587 instance_config_host: { get_attr: [cfg01_node, instance_address] }
588
589 prx02_virtual:
590 type: MCP::SingleInstance
591 depends_on: [control_cluster]
592 properties:
593 env_name: { get_param: env_name }
594 mcp_version: { get_param: mcp_version }
595 instance_domain: {get_param: instance_domain}
596 instance_name: prx02
597 instance_flavor: {get_param: cid_flavor}
sgudze8442722019-05-08 10:38:04 +0300598 underlay_userdata: { get_file: ./underlay-userdata.yaml }
599 control_net_static_ip:
600 list_join:
601 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300602 - [ { get_attr: [subnets, control_net_prefix] }, '222' ]
sgudze6bff762019-05-23 18:15:49 +0300603 tenant_net_static_ip:
604 list_join:
605 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300606 - [ { get_attr: [subnets, tenant_net_prefix] }, '222' ]
sgudze6bff762019-05-23 18:15:49 +0300607 external_net_static_ip:
608 list_join:
609 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300610 - [ { get_attr: [subnets, external_net_prefix] }, '222' ]
sgudze8442722019-05-08 10:38:04 +0300611 instance_config_host: { get_attr: [cfg01_node, instance_address] }
612
613 cmp001_virtual:
614 type: MCP::Compute
615 depends_on: [cfg01_node]
616 properties:
617 env_name: { get_param: env_name }
618 mcp_version: { get_param: mcp_version }
619 instance_domain: {get_param: instance_domain}
620 instance_name: cmp001
621 instance_flavor: {get_param: cmp_flavor}
sgudze8442722019-05-08 10:38:04 +0300622 underlay_userdata: { get_file: ./underlay-userdata.yaml }
623 control_net_static_ip:
624 list_join:
625 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300626 - [ { get_attr: [subnets, control_net_prefix] }, '101' ]
sgudze6bff762019-05-23 18:15:49 +0300627 tenant_net_static_ip:
628 list_join:
629 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300630 - [ { get_attr: [subnets, tenant_net_prefix] }, '101' ]
sgudze6bff762019-05-23 18:15:49 +0300631 external_net_static_ip:
632 list_join:
633 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300634 - [ { get_attr: [subnets, external_net_prefix] }, '101' ]
sgudze6bff762019-05-23 18:15:49 +0300635
sgudze8442722019-05-08 10:38:04 +0300636 instance_config_host: { get_attr: [cfg01_node, instance_address] }
637
638 cmp002_virtual:
639 type: MCP::Compute
640 depends_on: [cfg01_node]
641 properties:
642 env_name: { get_param: env_name }
643 mcp_version: { get_param: mcp_version }
644 instance_domain: {get_param: instance_domain}
645 instance_name: cmp002
646 instance_flavor: {get_param: cmp_flavor}
sgudze8442722019-05-08 10:38:04 +0300647 underlay_userdata: { get_file: ./underlay-userdata.yaml }
648 control_net_static_ip:
649 list_join:
650 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300651 - [ { get_attr: [subnets, control_net_prefix] }, '102' ]
sgudze6bff762019-05-23 18:15:49 +0300652 tenant_net_static_ip:
653 list_join:
654 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300655 - [ { get_attr: [subnets, tenant_net_prefix] }, '102' ]
sgudze6bff762019-05-23 18:15:49 +0300656 external_net_static_ip:
657 list_join:
658 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300659 - [ { get_attr: [subnets, external_net_prefix] }, '102' ]
sgudze6bff762019-05-23 18:15:49 +0300660
sgudze8442722019-05-08 10:38:04 +0300661 instance_config_host: { get_attr: [cfg01_node, instance_address] }
662
663 foundation_node:
664 type: MCP::FoundationNode
665 depends_on: [networks]
666 properties:
667 env_name: { get_param: env_name }
668 mcp_version: { get_param: mcp_version }
669 instance_domain: {get_param: instance_domain}
670 instance_name: foundation
Dennis Dmitrievcba86122019-05-24 13:41:46 +0300671 instance_image: { get_param: foundation_image }
sgudze8442722019-05-08 10:38:04 +0300672 instance_flavor: {get_param: foundation_flavor}
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300673 management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] }
674 control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] }
675 tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] }
676 external_net: { list_join: ['-', [ 'external_net', { get_param: env_name } ]] }
sgudze8442722019-05-08 10:38:04 +0300677 underlay_userdata: { get_file: ./underlay--user-data-foundation.yaml }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300678 management_net_static_ip:
679 list_join:
680 - '.'
681 - [ { get_attr: [subnets, management_net_prefix] }, '5' ]
sgudze8442722019-05-08 10:38:04 +0300682 control_net_static_ip:
683 list_join:
684 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300685 - [ { get_attr: [subnets, control_net_prefix] }, '5' ]
sgudze6bff762019-05-23 18:15:49 +0300686 tenant_net_static_ip:
687 list_join:
688 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300689 - [ { get_attr: [subnets, tenant_net_prefix] }, '5' ]
sgudze6bff762019-05-23 18:15:49 +0300690 external_net_static_ip:
691 list_join:
692 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300693 - [ { get_attr: [subnets, external_net_prefix] }, '5' ]
sgudze6bff762019-05-23 18:15:49 +0300694
sgudze8442722019-05-08 10:38:04 +0300695 instance_config_host: { get_attr: [cfg01_node, instance_address] }
696
697outputs:
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300698 foundation_public_ip:
sgudze8442722019-05-08 10:38:04 +0300699 description: foundation node IP address (floating) from external network
700 value:
701 get_attr:
702 - foundation_node
703 - instance_floating_address
704...