blob: d1f77b47cd4d709cfd9834d276764b92973bca9d [file] [log] [blame]
sgudza133b8e2019-05-10 14:32:08 +03001---
2
3heat_template_version: queens
4
5description: MCP environment for heat-cicd-k8s-calico-sl
6
7parameters:
8 instance_domain:
9 type: string
10 default: heat-cicd-k8s-calico-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 foundation_flavor:
48 type: string
49
50 net_public:
51 type: string
52
Dennis Dmitrievcba86122019-05-24 13:41:46 +030053 foundation_image:
54 type: string
55
sgudza133b8e2019-05-10 14:32:08 +030056resources:
57 networks:
58 type: MCP::Networks
59 properties:
60 stack_name: { get_param: "OS::stack_name" }
61 env_name: { get_param: env_name }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +030062 subnets:
63 depends_on: [networks]
64 type: MCP::Subnets
65 properties:
66 stack_name: { get_param: "OS::stack_name" }
67 env_name: { get_param: env_name }
68 management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] }
69 control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] }
70 tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] }
71 external_net: { list_join: ['-', [ 'external_net', { get_param: env_name } ]] }
sgudza133b8e2019-05-10 14:32:08 +030072
73 #flavors:
74 # type: MCP::Flavors
75
76 cfg01_node:
77 type: MCP::MasterNode
78 depends_on: [networks]
79 properties:
80 env_name: { get_param: env_name }
81 mcp_version: { get_param: mcp_version }
82 cfg01_flavor: { get_param: cfg_flavor }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +030083 management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] }
84 control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] }
85 tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] }
86 external_net: { list_join: ['-', [ 'external_net', { get_param: env_name } ]] }
sgudze6bff762019-05-23 18:15:49 +030087 tenant_net_static_ip:
88 list_join:
89 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +030090 - [ { get_attr: [subnets, tenant_net_prefix] }, '15' ]
sgudze6bff762019-05-23 18:15:49 +030091 external_net_static_ip:
92 list_join:
93 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +030094 - [ { get_attr: [subnets, external_net_prefix] }, '15' ]
sgudza133b8e2019-05-10 14:32:08 +030095 instance_name: cfg01
96 instance_domain: {get_param: instance_domain}
sgudza133b8e2019-05-10 14:32:08 +030097
98 control_cluster:
99 type: MCP::MultipleInstance
100 depends_on: [cfg01_node]
101 properties:
102 env_name: { get_param: env_name }
103 mcp_version: { get_param: mcp_version }
104 instance_domain: {get_param: instance_domain}
105 instance01_name: ctl01
106 instance02_name: ctl02
107 instance03_name: ctl03
108 instance01_role: k8s_controller
109 instance_flavor: {get_param: ctl_flavor}
sgudza133b8e2019-05-10 14:32:08 +0300110 underlay_userdata: { get_file: ./underlay-userdata.yaml }
111 instance01_control_net_static_ip:
112 list_join:
113 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300114 - [ { get_attr: [subnets, control_net_prefix] }, '11' ]
sgudza133b8e2019-05-10 14:32:08 +0300115 instance02_control_net_static_ip:
116 list_join:
117 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300118 - [ { get_attr: [subnets, control_net_prefix] }, '12' ]
sgudza133b8e2019-05-10 14:32:08 +0300119 instance03_control_net_static_ip:
120 list_join:
121 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300122 - [ { get_attr: [subnets, control_net_prefix] }, '13' ]
sgudze6bff762019-05-23 18:15:49 +0300123 instance01_tenant_net_static_ip:
124 list_join:
125 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300126 - [ { get_attr: [subnets, tenant_net_prefix] }, '11' ]
sgudze6bff762019-05-23 18:15:49 +0300127 instance02_tenant_net_static_ip:
128 list_join:
129 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300130 - [ { get_attr: [subnets, tenant_net_prefix] }, '12' ]
sgudze6bff762019-05-23 18:15:49 +0300131 instance03_tenant_net_static_ip:
132 list_join:
133 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300134 - [ { get_attr: [subnets, tenant_net_prefix] }, '13' ]
sgudze6bff762019-05-23 18:15:49 +0300135 instance01_external_net_static_ip:
136 list_join:
137 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300138 - [ { get_attr: [subnets, external_net_prefix] }, '11' ]
sgudze6bff762019-05-23 18:15:49 +0300139 instance02_external_net_static_ip:
140 list_join:
141 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300142 - [ { get_attr: [subnets, external_net_prefix] }, '12' ]
sgudze6bff762019-05-23 18:15:49 +0300143 instance03_external_net_static_ip:
144 list_join:
145 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300146 - [ { get_attr: [subnets, external_net_prefix] }, '13' ]
sgudza133b8e2019-05-10 14:32:08 +0300147
148 instance_config_host: { get_attr: [cfg01_node, instance_address] }
149
150 fake_kvm_cluster:
151 type: MCP::MultipleInstance
152 depends_on: [control_cluster]
153 properties:
154 env_name: { get_param: env_name }
155 mcp_version: { get_param: mcp_version }
156 instance_domain: {get_param: instance_domain}
157 instance01_name: kvm01
158 instance02_name: kvm02
159 instance03_name: kvm03
160 instance_flavor: {get_param: kvm_fake_flavor}
sgudza133b8e2019-05-10 14:32:08 +0300161 underlay_userdata: { get_file: ./underlay-userdata.yaml }
162 instance01_control_net_static_ip:
163 list_join:
164 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300165 - [ { get_attr: [subnets, control_net_prefix] }, '241' ]
sgudza133b8e2019-05-10 14:32:08 +0300166 instance02_control_net_static_ip:
167 list_join:
168 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300169 - [ { get_attr: [subnets, control_net_prefix] }, '242' ]
sgudza133b8e2019-05-10 14:32:08 +0300170 instance03_control_net_static_ip:
171 list_join:
172 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300173 - [ { get_attr: [subnets, control_net_prefix] }, '243' ]
sgudze6bff762019-05-23 18:15:49 +0300174 instance01_tenant_net_static_ip:
175 list_join:
176 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300177 - [ { get_attr: [subnets, tenant_net_prefix] }, '241' ]
sgudze6bff762019-05-23 18:15:49 +0300178 instance02_tenant_net_static_ip:
179 list_join:
180 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300181 - [ { get_attr: [subnets, tenant_net_prefix] }, '242' ]
sgudze6bff762019-05-23 18:15:49 +0300182 instance03_tenant_net_static_ip:
183 list_join:
184 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300185 - [ { get_attr: [subnets, tenant_net_prefix] }, '243' ]
sgudze6bff762019-05-23 18:15:49 +0300186 instance01_external_net_static_ip:
187 list_join:
188 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300189 - [ { get_attr: [subnets, external_net_prefix] }, '241' ]
sgudze6bff762019-05-23 18:15:49 +0300190 instance02_external_net_static_ip:
191 list_join:
192 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300193 - [ { get_attr: [subnets, external_net_prefix] }, '242' ]
sgudze6bff762019-05-23 18:15:49 +0300194 instance03_external_net_static_ip:
195 list_join:
196 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300197 - [ { get_attr: [subnets, external_net_prefix] }, '243' ]
sgudza133b8e2019-05-10 14:32:08 +0300198
199 instance_config_host: { get_attr: [cfg01_node, instance_address] }
200
201 cicd_cluster:
202 type: MCP::MultipleInstance
203 depends_on: [fake_kvm_cluster]
204 properties:
205 env_name: { get_param: env_name }
206 mcp_version: { get_param: mcp_version }
207 instance_domain: {get_param: instance_domain}
208 instance01_name: cid01
209 instance02_name: cid02
210 instance03_name: cid03
211 instance_flavor: {get_param: cid_flavor}
sgudza133b8e2019-05-10 14:32:08 +0300212 underlay_userdata: { get_file: ./underlay-userdata.yaml }
213 instance01_control_net_static_ip:
214 list_join:
215 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300216 - [ { get_attr: [subnets, control_net_prefix] }, '91' ]
sgudza133b8e2019-05-10 14:32:08 +0300217 instance02_control_net_static_ip:
218 list_join:
219 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300220 - [ { get_attr: [subnets, control_net_prefix] }, '92' ]
sgudza133b8e2019-05-10 14:32:08 +0300221 instance03_control_net_static_ip:
222 list_join:
223 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300224 - [ { get_attr: [subnets, control_net_prefix] }, '93' ]
sgudze6bff762019-05-23 18:15:49 +0300225 instance01_tenant_net_static_ip:
226 list_join:
227 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300228 - [ { get_attr: [subnets, tenant_net_prefix] }, '91' ]
sgudze6bff762019-05-23 18:15:49 +0300229 instance02_tenant_net_static_ip:
230 list_join:
231 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300232 - [ { get_attr: [subnets, tenant_net_prefix] }, '92' ]
sgudze6bff762019-05-23 18:15:49 +0300233 instance03_tenant_net_static_ip:
234 list_join:
235 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300236 - [ { get_attr: [subnets, tenant_net_prefix] }, '93' ]
sgudze6bff762019-05-23 18:15:49 +0300237 instance01_external_net_static_ip:
238 list_join:
239 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300240 - [ { get_attr: [subnets, external_net_prefix] }, '91' ]
sgudze6bff762019-05-23 18:15:49 +0300241 instance02_external_net_static_ip:
242 list_join:
243 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300244 - [ { get_attr: [subnets, external_net_prefix] }, '92' ]
sgudze6bff762019-05-23 18:15:49 +0300245 instance03_external_net_static_ip:
246 list_join:
247 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300248 - [ { get_attr: [subnets, external_net_prefix] }, '93' ]
sgudza133b8e2019-05-10 14:32:08 +0300249
250 instance_config_host: { get_attr: [cfg01_node, instance_address] }
251
252 stacklight_monitor_cluster:
253 type: MCP::MultipleInstance
254 depends_on: [cicd_cluster]
255 properties:
256 env_name: { get_param: env_name }
257 mcp_version: { get_param: mcp_version }
258 instance_domain: {get_param: instance_domain}
259 instance01_name: mon01
260 instance02_name: mon02
261 instance03_name: mon03
262 instance_flavor: {get_param: mon_flavor}
sgudza133b8e2019-05-10 14:32:08 +0300263 underlay_userdata: { get_file: ./underlay-userdata.yaml }
264 instance01_control_net_static_ip:
265 list_join:
266 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300267 - [ { get_attr: [subnets, control_net_prefix] }, '71' ]
sgudza133b8e2019-05-10 14:32:08 +0300268 instance02_control_net_static_ip:
269 list_join:
270 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300271 - [ { get_attr: [subnets, control_net_prefix] }, '72' ]
sgudza133b8e2019-05-10 14:32:08 +0300272 instance03_control_net_static_ip:
273 list_join:
274 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300275 - [ { get_attr: [subnets, control_net_prefix] }, '73' ]
sgudze6bff762019-05-23 18:15:49 +0300276 instance01_tenant_net_static_ip:
277 list_join:
278 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300279 - [ { get_attr: [subnets, tenant_net_prefix] }, '71' ]
sgudze6bff762019-05-23 18:15:49 +0300280 instance02_tenant_net_static_ip:
281 list_join:
282 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300283 - [ { get_attr: [subnets, tenant_net_prefix] }, '72' ]
sgudze6bff762019-05-23 18:15:49 +0300284 instance03_tenant_net_static_ip:
285 list_join:
286 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300287 - [ { get_attr: [subnets, tenant_net_prefix] }, '73' ]
sgudze6bff762019-05-23 18:15:49 +0300288 instance01_external_net_static_ip:
289 list_join:
290 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300291 - [ { get_attr: [subnets, external_net_prefix] }, '71' ]
sgudze6bff762019-05-23 18:15:49 +0300292 instance02_external_net_static_ip:
293 list_join:
294 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300295 - [ { get_attr: [subnets, external_net_prefix] }, '72' ]
sgudze6bff762019-05-23 18:15:49 +0300296 instance03_external_net_static_ip:
297 list_join:
298 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300299 - [ { get_attr: [subnets, external_net_prefix] }, '73' ]
sgudze6bff762019-05-23 18:15:49 +0300300
sgudza133b8e2019-05-10 14:32:08 +0300301 instance_config_host: { get_attr: [cfg01_node, instance_address] }
302
303 stacklight_log_cluster:
304 type: MCP::MultipleInstance
305 depends_on: [stacklight_monitor_cluster]
306 properties:
307 env_name: { get_param: env_name }
308 mcp_version: { get_param: mcp_version }
309 instance_domain: {get_param: instance_domain}
310 instance01_name: log01
311 instance02_name: log02
312 instance03_name: log03
313 instance_flavor: {get_param: log_flavor}
sgudza133b8e2019-05-10 14:32:08 +0300314 underlay_userdata: { get_file: ./underlay-userdata.yaml }
315 instance01_control_net_static_ip:
316 list_join:
317 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300318 - [ { get_attr: [subnets, control_net_prefix] }, '61' ]
sgudza133b8e2019-05-10 14:32:08 +0300319 instance02_control_net_static_ip:
320 list_join:
321 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300322 - [ { get_attr: [subnets, control_net_prefix] }, '62' ]
sgudza133b8e2019-05-10 14:32:08 +0300323 instance03_control_net_static_ip:
324 list_join:
325 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300326 - [ { get_attr: [subnets, control_net_prefix] }, '63' ]
sgudze6bff762019-05-23 18:15:49 +0300327 instance01_tenant_net_static_ip:
328 list_join:
329 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300330 - [ { get_attr: [subnets, tenant_net_prefix] }, '61' ]
sgudze6bff762019-05-23 18:15:49 +0300331 instance02_tenant_net_static_ip:
332 list_join:
333 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300334 - [ { get_attr: [subnets, tenant_net_prefix] }, '62' ]
sgudze6bff762019-05-23 18:15:49 +0300335 instance03_tenant_net_static_ip:
336 list_join:
337 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300338 - [ { get_attr: [subnets, tenant_net_prefix] }, '63' ]
sgudze6bff762019-05-23 18:15:49 +0300339 instance01_external_net_static_ip:
340 list_join:
341 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300342 - [ { get_attr: [subnets, external_net_prefix] }, '61' ]
sgudze6bff762019-05-23 18:15:49 +0300343 instance02_external_net_static_ip:
344 list_join:
345 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300346 - [ { get_attr: [subnets, external_net_prefix] }, '62' ]
sgudze6bff762019-05-23 18:15:49 +0300347 instance03_external_net_static_ip:
348 list_join:
349 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300350 - [ { get_attr: [subnets, external_net_prefix] }, '63' ]
sgudze6bff762019-05-23 18:15:49 +0300351
sgudza133b8e2019-05-10 14:32:08 +0300352 instance_config_host: { get_attr: [cfg01_node, instance_address] }
353
354 stacklight_mtr_cluster:
355 type: MCP::MultipleInstance
356 depends_on: [stacklight_log_cluster]
357 properties:
358 env_name: { get_param: env_name }
359 mcp_version: { get_param: mcp_version }
360 instance_domain: {get_param: instance_domain}
361 instance01_name: mtr01
362 instance02_name: mtr02
363 instance03_name: mtr03
364 instance_flavor: {get_param: mtr_flavor}
sgudza133b8e2019-05-10 14:32:08 +0300365 underlay_userdata: { get_file: ./underlay-userdata.yaml }
366 instance01_control_net_static_ip:
367 list_join:
368 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300369 - [ { get_attr: [subnets, control_net_prefix] }, '86' ]
sgudza133b8e2019-05-10 14:32:08 +0300370 instance02_control_net_static_ip:
371 list_join:
372 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300373 - [ { get_attr: [subnets, control_net_prefix] }, '87' ]
sgudza133b8e2019-05-10 14:32:08 +0300374 instance03_control_net_static_ip:
375 list_join:
376 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300377 - [ { get_attr: [subnets, control_net_prefix] }, '88' ]
sgudze6bff762019-05-23 18:15:49 +0300378 instance01_tenant_net_static_ip:
379 list_join:
380 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300381 - [ { get_attr: [subnets, tenant_net_prefix] }, '86' ]
sgudze6bff762019-05-23 18:15:49 +0300382 instance02_tenant_net_static_ip:
383 list_join:
384 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300385 - [ { get_attr: [subnets, tenant_net_prefix] }, '87' ]
sgudze6bff762019-05-23 18:15:49 +0300386 instance03_tenant_net_static_ip:
387 list_join:
388 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300389 - [ { get_attr: [subnets, tenant_net_prefix] }, '88' ]
sgudze6bff762019-05-23 18:15:49 +0300390 instance01_external_net_static_ip:
391 list_join:
392 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300393 - [ { get_attr: [subnets, external_net_prefix] }, '86' ]
sgudze6bff762019-05-23 18:15:49 +0300394 instance02_external_net_static_ip:
395 list_join:
396 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300397 - [ { get_attr: [subnets, external_net_prefix] }, '87' ]
sgudze6bff762019-05-23 18:15:49 +0300398 instance03_external_net_static_ip:
399 list_join:
400 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300401 - [ { get_attr: [subnets, external_net_prefix] }, '88' ]
sgudze6bff762019-05-23 18:15:49 +0300402
sgudza133b8e2019-05-10 14:32:08 +0300403 instance_config_host: { get_attr: [cfg01_node, instance_address] }
404
405 prx01_virtual:
406 type: MCP::SingleInstance
407 depends_on: [stacklight_mtr_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 instance_name: prx01
413 instance_flavor: {get_param: cid_flavor}
sgudza133b8e2019-05-10 14:32:08 +0300414 underlay_userdata: { get_file: ./underlay-userdata.yaml }
415 control_net_static_ip:
416 list_join:
417 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300418 - [ { get_attr: [subnets, control_net_prefix] }, '221' ]
sgudze6bff762019-05-23 18:15:49 +0300419 tenant_net_static_ip:
420 list_join:
421 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300422 - [ { get_attr: [subnets, tenant_net_prefix] }, '221' ]
sgudze6bff762019-05-23 18:15:49 +0300423 external_net_static_ip:
424 list_join:
425 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300426 - [ { get_attr: [subnets, external_net_prefix] }, '221' ]
sgudze6bff762019-05-23 18:15:49 +0300427
sgudza133b8e2019-05-10 14:32:08 +0300428 instance_config_host: { get_attr: [cfg01_node, instance_address] }
429
430 prx02_virtual:
431 type: MCP::SingleInstance
432 depends_on: [prx01_virtual]
433 properties:
434 env_name: { get_param: env_name }
435 mcp_version: { get_param: mcp_version }
436 instance_domain: {get_param: instance_domain}
437 instance_name: prx02
438 instance_flavor: {get_param: cid_flavor}
sgudza133b8e2019-05-10 14:32:08 +0300439 underlay_userdata: { get_file: ./underlay-userdata.yaml }
440 control_net_static_ip:
441 list_join:
442 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300443 - [ { get_attr: [subnets, control_net_prefix] }, '222' ]
sgudze6bff762019-05-23 18:15:49 +0300444 tenant_net_static_ip:
445 list_join:
446 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300447 - [ { get_attr: [subnets, tenant_net_prefix] }, '222' ]
sgudze6bff762019-05-23 18:15:49 +0300448 external_net_static_ip:
449 list_join:
450 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300451 - [ { get_attr: [subnets, external_net_prefix] }, '222' ]
sgudze6bff762019-05-23 18:15:49 +0300452
sgudza133b8e2019-05-10 14:32:08 +0300453 instance_config_host: { get_attr: [cfg01_node, instance_address] }
454
455 cmp001_virtual:
456 type: MCP::Compute
457 depends_on: [prx02_virtual]
458 properties:
459 env_name: { get_param: env_name }
460 mcp_version: { get_param: mcp_version }
461 instance_domain: {get_param: instance_domain}
462 instance_name: cmp001
463 instance_flavor: {get_param: cmp_flavor}
sgudza133b8e2019-05-10 14:32:08 +0300464 underlay_userdata: { get_file: ./underlay-userdata.yaml }
465 control_net_static_ip:
466 list_join:
467 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300468 - [ { get_attr: [subnets, control_net_prefix] }, '101' ]
sgudze6bff762019-05-23 18:15:49 +0300469 tenant_net_static_ip:
470 list_join:
471 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300472 - [ { get_attr: [subnets, tenant_net_prefix] }, '101' ]
sgudze6bff762019-05-23 18:15:49 +0300473 external_net_static_ip:
474 list_join:
475 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300476 - [ { get_attr: [subnets, external_net_prefix] }, '101' ]
sgudze6bff762019-05-23 18:15:49 +0300477
sgudza133b8e2019-05-10 14:32:08 +0300478 instance_config_host: { get_attr: [cfg01_node, instance_address] }
479
480 cmp002_virtual:
481 type: MCP::Compute
482 depends_on: [cmp001_virtual]
483 properties:
484 env_name: { get_param: env_name }
485 mcp_version: { get_param: mcp_version }
486 instance_domain: {get_param: instance_domain}
487 instance_name: cmp002
488 instance_flavor: {get_param: cmp_flavor}
sgudza133b8e2019-05-10 14:32:08 +0300489 underlay_userdata: { get_file: ./underlay-userdata.yaml }
490 control_net_static_ip:
491 list_join:
492 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300493 - [ { get_attr: [subnets, control_net_prefix] }, '102' ]
sgudze6bff762019-05-23 18:15:49 +0300494 tenant_net_static_ip:
495 list_join:
496 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300497 - [ { get_attr: [subnets, tenant_net_prefix] }, '102' ]
sgudze6bff762019-05-23 18:15:49 +0300498 external_net_static_ip:
499 list_join:
500 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300501 - [ { get_attr: [subnets, external_net_prefix] }, '102' ]
sgudze6bff762019-05-23 18:15:49 +0300502
sgudza133b8e2019-05-10 14:32:08 +0300503 instance_config_host: { get_attr: [cfg01_node, instance_address] }
504
505 cmp003_virtual:
506 type: MCP::Compute
507 depends_on: [cmp002_virtual]
508 properties:
509 env_name: { get_param: env_name }
510 mcp_version: { get_param: mcp_version }
511 instance_domain: {get_param: instance_domain}
512 instance_name: cmp003
513 instance_flavor: {get_param: cmp_flavor}
sgudza133b8e2019-05-10 14:32:08 +0300514 underlay_userdata: { get_file: ./underlay-userdata.yaml }
515 control_net_static_ip:
516 list_join:
517 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300518 - [ { get_attr: [subnets, control_net_prefix] }, '103' ]
sgudze6bff762019-05-23 18:15:49 +0300519 tenant_net_static_ip:
520 list_join:
521 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300522 - [ { get_attr: [subnets, tenant_net_prefix] }, '103' ]
sgudze6bff762019-05-23 18:15:49 +0300523 external_net_static_ip:
524 list_join:
525 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300526 - [ { get_attr: [subnets, external_net_prefix] }, '103' ]
sgudze6bff762019-05-23 18:15:49 +0300527
sgudza133b8e2019-05-10 14:32:08 +0300528 instance_config_host: { get_attr: [cfg01_node, instance_address] }
529
530 cmp004_virtual:
531 type: MCP::Compute
532 depends_on: [cmp003_virtual]
533 properties:
534 env_name: { get_param: env_name }
535 mcp_version: { get_param: mcp_version }
536 instance_domain: {get_param: instance_domain}
537 instance_name: cmp004
538 instance_flavor: {get_param: cmp_flavor}
sgudza133b8e2019-05-10 14:32:08 +0300539 underlay_userdata: { get_file: ./underlay-userdata.yaml }
540 control_net_static_ip:
541 list_join:
542 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300543 - [ { get_attr: [subnets, control_net_prefix] }, '104' ]
sgudze6bff762019-05-23 18:15:49 +0300544 tenant_net_static_ip:
545 list_join:
546 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300547 - [ { get_attr: [subnets, tenant_net_prefix] }, '104' ]
sgudze6bff762019-05-23 18:15:49 +0300548 external_net_static_ip:
549 list_join:
550 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300551 - [ { get_attr: [subnets, external_net_prefix] }, '104' ]
sgudze6bff762019-05-23 18:15:49 +0300552
sgudza133b8e2019-05-10 14:32:08 +0300553 instance_config_host: { get_attr: [cfg01_node, instance_address] }
554
555 foundation_node:
556 type: MCP::FoundationNode
557 depends_on: [networks]
558 properties:
559 env_name: { get_param: env_name }
560 mcp_version: { get_param: mcp_version }
561 instance_domain: {get_param: instance_domain}
562 instance_name: foundation
Dennis Dmitrievcba86122019-05-24 13:41:46 +0300563 instance_image: { get_param: foundation_image }
sgudza133b8e2019-05-10 14:32:08 +0300564 instance_flavor: {get_param: foundation_flavor}
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300565 management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] }
566 control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] }
567 tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] }
568 external_net: { list_join: ['-', [ 'external_net', { get_param: env_name } ]] }
sgudza133b8e2019-05-10 14:32:08 +0300569 underlay_userdata: { get_file: ./underlay--user-data-foundation.yaml }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300570 management_net_static_ip:
571 list_join:
572 - '.'
573 - [ { get_attr: [subnets, management_net_prefix] }, '5' ]
sgudza133b8e2019-05-10 14:32:08 +0300574 control_net_static_ip:
575 list_join:
576 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300577 - [ { get_attr: [subnets, control_net_prefix] }, '5' ]
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] }, '5' ]
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] }, '5' ]
sgudze6bff762019-05-23 18:15:49 +0300586
sgudza133b8e2019-05-10 14:32:08 +0300587 instance_config_host: { get_attr: [cfg01_node, instance_address] }
588
589outputs:
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300590 foundation_public_ip:
sgudza133b8e2019-05-10 14:32:08 +0300591 description: foundation node IP address (floating) from external network
592 value:
593 get_attr:
594 - foundation_node
595 - instance_floating_address
596...