blob: 6f4bb1437f82d455c39db28520aed5dce20dfd26 [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
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +030056 bm_availability_zone:
57 type: string
58 vm_availability_zone:
59 type: string
60
sgudza133b8e2019-05-10 14:32:08 +030061resources:
62 networks:
63 type: MCP::Networks
64 properties:
65 stack_name: { get_param: "OS::stack_name" }
66 env_name: { get_param: env_name }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +030067 subnets:
68 depends_on: [networks]
69 type: MCP::Subnets
70 properties:
71 stack_name: { get_param: "OS::stack_name" }
72 env_name: { get_param: env_name }
73 management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] }
74 control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] }
75 tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] }
76 external_net: { list_join: ['-', [ 'external_net', { get_param: env_name } ]] }
sgudza133b8e2019-05-10 14:32:08 +030077
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 }
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +030088 availability_zone: { get_param: bm_availability_zone }
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' ]
sgudza133b8e2019-05-10 14:32:08 +0300101 instance_name: cfg01
102 instance_domain: {get_param: instance_domain}
sgudza133b8e2019-05-10 14:32:08 +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
114 instance01_role: k8s_controller
115 instance_flavor: {get_param: ctl_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300116 availability_zone: { get_param: vm_availability_zone }
sgudza133b8e2019-05-10 14:32:08 +0300117 underlay_userdata: { get_file: ./underlay-userdata.yaml }
118 instance01_control_net_static_ip:
119 list_join:
120 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300121 - [ { get_attr: [subnets, control_net_prefix] }, '11' ]
sgudza133b8e2019-05-10 14:32:08 +0300122 instance02_control_net_static_ip:
123 list_join:
124 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300125 - [ { get_attr: [subnets, control_net_prefix] }, '12' ]
sgudza133b8e2019-05-10 14:32:08 +0300126 instance03_control_net_static_ip:
127 list_join:
128 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300129 - [ { get_attr: [subnets, control_net_prefix] }, '13' ]
sgudze6bff762019-05-23 18:15:49 +0300130 instance01_tenant_net_static_ip:
131 list_join:
132 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300133 - [ { get_attr: [subnets, tenant_net_prefix] }, '11' ]
sgudze6bff762019-05-23 18:15:49 +0300134 instance02_tenant_net_static_ip:
135 list_join:
136 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300137 - [ { get_attr: [subnets, tenant_net_prefix] }, '12' ]
sgudze6bff762019-05-23 18:15:49 +0300138 instance03_tenant_net_static_ip:
139 list_join:
140 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300141 - [ { get_attr: [subnets, tenant_net_prefix] }, '13' ]
sgudze6bff762019-05-23 18:15:49 +0300142 instance01_external_net_static_ip:
143 list_join:
144 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300145 - [ { get_attr: [subnets, external_net_prefix] }, '11' ]
sgudze6bff762019-05-23 18:15:49 +0300146 instance02_external_net_static_ip:
147 list_join:
148 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300149 - [ { get_attr: [subnets, external_net_prefix] }, '12' ]
sgudze6bff762019-05-23 18:15:49 +0300150 instance03_external_net_static_ip:
151 list_join:
152 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300153 - [ { get_attr: [subnets, external_net_prefix] }, '13' ]
sgudza133b8e2019-05-10 14:32:08 +0300154
155 instance_config_host: { get_attr: [cfg01_node, instance_address] }
156
157 fake_kvm_cluster:
158 type: MCP::MultipleInstance
159 depends_on: [control_cluster]
160 properties:
161 env_name: { get_param: env_name }
162 mcp_version: { get_param: mcp_version }
163 instance_domain: {get_param: instance_domain}
164 instance01_name: kvm01
165 instance02_name: kvm02
166 instance03_name: kvm03
167 instance_flavor: {get_param: kvm_fake_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300168 availability_zone: { get_param: vm_availability_zone }
sgudza133b8e2019-05-10 14:32:08 +0300169 underlay_userdata: { get_file: ./underlay-userdata.yaml }
170 instance01_control_net_static_ip:
171 list_join:
172 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300173 - [ { get_attr: [subnets, control_net_prefix] }, '241' ]
sgudza133b8e2019-05-10 14:32:08 +0300174 instance02_control_net_static_ip:
175 list_join:
176 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300177 - [ { get_attr: [subnets, control_net_prefix] }, '242' ]
sgudza133b8e2019-05-10 14:32:08 +0300178 instance03_control_net_static_ip:
179 list_join:
180 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300181 - [ { get_attr: [subnets, control_net_prefix] }, '243' ]
sgudze6bff762019-05-23 18:15:49 +0300182 instance01_tenant_net_static_ip:
183 list_join:
184 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300185 - [ { get_attr: [subnets, tenant_net_prefix] }, '241' ]
sgudze6bff762019-05-23 18:15:49 +0300186 instance02_tenant_net_static_ip:
187 list_join:
188 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300189 - [ { get_attr: [subnets, tenant_net_prefix] }, '242' ]
sgudze6bff762019-05-23 18:15:49 +0300190 instance03_tenant_net_static_ip:
191 list_join:
192 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300193 - [ { get_attr: [subnets, tenant_net_prefix] }, '243' ]
sgudze6bff762019-05-23 18:15:49 +0300194 instance01_external_net_static_ip:
195 list_join:
196 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300197 - [ { get_attr: [subnets, external_net_prefix] }, '241' ]
sgudze6bff762019-05-23 18:15:49 +0300198 instance02_external_net_static_ip:
199 list_join:
200 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300201 - [ { get_attr: [subnets, external_net_prefix] }, '242' ]
sgudze6bff762019-05-23 18:15:49 +0300202 instance03_external_net_static_ip:
203 list_join:
204 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300205 - [ { get_attr: [subnets, external_net_prefix] }, '243' ]
sgudza133b8e2019-05-10 14:32:08 +0300206
207 instance_config_host: { get_attr: [cfg01_node, instance_address] }
208
209 cicd_cluster:
210 type: MCP::MultipleInstance
211 depends_on: [fake_kvm_cluster]
212 properties:
213 env_name: { get_param: env_name }
214 mcp_version: { get_param: mcp_version }
215 instance_domain: {get_param: instance_domain}
216 instance01_name: cid01
217 instance02_name: cid02
218 instance03_name: cid03
219 instance_flavor: {get_param: cid_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300220 availability_zone: { get_param: vm_availability_zone }
sgudza133b8e2019-05-10 14:32:08 +0300221 underlay_userdata: { get_file: ./underlay-userdata.yaml }
222 instance01_control_net_static_ip:
223 list_join:
224 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300225 - [ { get_attr: [subnets, control_net_prefix] }, '91' ]
sgudza133b8e2019-05-10 14:32:08 +0300226 instance02_control_net_static_ip:
227 list_join:
228 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300229 - [ { get_attr: [subnets, control_net_prefix] }, '92' ]
sgudza133b8e2019-05-10 14:32:08 +0300230 instance03_control_net_static_ip:
231 list_join:
232 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300233 - [ { get_attr: [subnets, control_net_prefix] }, '93' ]
sgudze6bff762019-05-23 18:15:49 +0300234 instance01_tenant_net_static_ip:
235 list_join:
236 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300237 - [ { get_attr: [subnets, tenant_net_prefix] }, '91' ]
sgudze6bff762019-05-23 18:15:49 +0300238 instance02_tenant_net_static_ip:
239 list_join:
240 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300241 - [ { get_attr: [subnets, tenant_net_prefix] }, '92' ]
sgudze6bff762019-05-23 18:15:49 +0300242 instance03_tenant_net_static_ip:
243 list_join:
244 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300245 - [ { get_attr: [subnets, tenant_net_prefix] }, '93' ]
sgudze6bff762019-05-23 18:15:49 +0300246 instance01_external_net_static_ip:
247 list_join:
248 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300249 - [ { get_attr: [subnets, external_net_prefix] }, '91' ]
sgudze6bff762019-05-23 18:15:49 +0300250 instance02_external_net_static_ip:
251 list_join:
252 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300253 - [ { get_attr: [subnets, external_net_prefix] }, '92' ]
sgudze6bff762019-05-23 18:15:49 +0300254 instance03_external_net_static_ip:
255 list_join:
256 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300257 - [ { get_attr: [subnets, external_net_prefix] }, '93' ]
sgudza133b8e2019-05-10 14:32:08 +0300258
259 instance_config_host: { get_attr: [cfg01_node, instance_address] }
260
261 stacklight_monitor_cluster:
262 type: MCP::MultipleInstance
263 depends_on: [cicd_cluster]
264 properties:
265 env_name: { get_param: env_name }
266 mcp_version: { get_param: mcp_version }
267 instance_domain: {get_param: instance_domain}
268 instance01_name: mon01
269 instance02_name: mon02
270 instance03_name: mon03
271 instance_flavor: {get_param: mon_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300272 availability_zone: { get_param: vm_availability_zone }
sgudza133b8e2019-05-10 14:32:08 +0300273 underlay_userdata: { get_file: ./underlay-userdata.yaml }
274 instance01_control_net_static_ip:
275 list_join:
276 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300277 - [ { get_attr: [subnets, control_net_prefix] }, '71' ]
sgudza133b8e2019-05-10 14:32:08 +0300278 instance02_control_net_static_ip:
279 list_join:
280 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300281 - [ { get_attr: [subnets, control_net_prefix] }, '72' ]
sgudza133b8e2019-05-10 14:32:08 +0300282 instance03_control_net_static_ip:
283 list_join:
284 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300285 - [ { get_attr: [subnets, control_net_prefix] }, '73' ]
sgudze6bff762019-05-23 18:15:49 +0300286 instance01_tenant_net_static_ip:
287 list_join:
288 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300289 - [ { get_attr: [subnets, tenant_net_prefix] }, '71' ]
sgudze6bff762019-05-23 18:15:49 +0300290 instance02_tenant_net_static_ip:
291 list_join:
292 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300293 - [ { get_attr: [subnets, tenant_net_prefix] }, '72' ]
sgudze6bff762019-05-23 18:15:49 +0300294 instance03_tenant_net_static_ip:
295 list_join:
296 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300297 - [ { get_attr: [subnets, tenant_net_prefix] }, '73' ]
sgudze6bff762019-05-23 18:15:49 +0300298 instance01_external_net_static_ip:
299 list_join:
300 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300301 - [ { get_attr: [subnets, external_net_prefix] }, '71' ]
sgudze6bff762019-05-23 18:15:49 +0300302 instance02_external_net_static_ip:
303 list_join:
304 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300305 - [ { get_attr: [subnets, external_net_prefix] }, '72' ]
sgudze6bff762019-05-23 18:15:49 +0300306 instance03_external_net_static_ip:
307 list_join:
308 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300309 - [ { get_attr: [subnets, external_net_prefix] }, '73' ]
sgudze6bff762019-05-23 18:15:49 +0300310
sgudza133b8e2019-05-10 14:32:08 +0300311 instance_config_host: { get_attr: [cfg01_node, instance_address] }
312
313 stacklight_log_cluster:
314 type: MCP::MultipleInstance
315 depends_on: [stacklight_monitor_cluster]
316 properties:
317 env_name: { get_param: env_name }
318 mcp_version: { get_param: mcp_version }
319 instance_domain: {get_param: instance_domain}
320 instance01_name: log01
321 instance02_name: log02
322 instance03_name: log03
323 instance_flavor: {get_param: log_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300324 availability_zone: { get_param: vm_availability_zone }
sgudza133b8e2019-05-10 14:32:08 +0300325 underlay_userdata: { get_file: ./underlay-userdata.yaml }
326 instance01_control_net_static_ip:
327 list_join:
328 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300329 - [ { get_attr: [subnets, control_net_prefix] }, '61' ]
sgudza133b8e2019-05-10 14:32:08 +0300330 instance02_control_net_static_ip:
331 list_join:
332 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300333 - [ { get_attr: [subnets, control_net_prefix] }, '62' ]
sgudza133b8e2019-05-10 14:32:08 +0300334 instance03_control_net_static_ip:
335 list_join:
336 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300337 - [ { get_attr: [subnets, control_net_prefix] }, '63' ]
sgudze6bff762019-05-23 18:15:49 +0300338 instance01_tenant_net_static_ip:
339 list_join:
340 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300341 - [ { get_attr: [subnets, tenant_net_prefix] }, '61' ]
sgudze6bff762019-05-23 18:15:49 +0300342 instance02_tenant_net_static_ip:
343 list_join:
344 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300345 - [ { get_attr: [subnets, tenant_net_prefix] }, '62' ]
sgudze6bff762019-05-23 18:15:49 +0300346 instance03_tenant_net_static_ip:
347 list_join:
348 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300349 - [ { get_attr: [subnets, tenant_net_prefix] }, '63' ]
sgudze6bff762019-05-23 18:15:49 +0300350 instance01_external_net_static_ip:
351 list_join:
352 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300353 - [ { get_attr: [subnets, external_net_prefix] }, '61' ]
sgudze6bff762019-05-23 18:15:49 +0300354 instance02_external_net_static_ip:
355 list_join:
356 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300357 - [ { get_attr: [subnets, external_net_prefix] }, '62' ]
sgudze6bff762019-05-23 18:15:49 +0300358 instance03_external_net_static_ip:
359 list_join:
360 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300361 - [ { get_attr: [subnets, external_net_prefix] }, '63' ]
sgudze6bff762019-05-23 18:15:49 +0300362
sgudza133b8e2019-05-10 14:32:08 +0300363 instance_config_host: { get_attr: [cfg01_node, instance_address] }
364
365 stacklight_mtr_cluster:
366 type: MCP::MultipleInstance
367 depends_on: [stacklight_log_cluster]
368 properties:
369 env_name: { get_param: env_name }
370 mcp_version: { get_param: mcp_version }
371 instance_domain: {get_param: instance_domain}
372 instance01_name: mtr01
373 instance02_name: mtr02
374 instance03_name: mtr03
375 instance_flavor: {get_param: mtr_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300376 availability_zone: { get_param: vm_availability_zone }
sgudza133b8e2019-05-10 14:32:08 +0300377 underlay_userdata: { get_file: ./underlay-userdata.yaml }
378 instance01_control_net_static_ip:
379 list_join:
380 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300381 - [ { get_attr: [subnets, control_net_prefix] }, '86' ]
sgudza133b8e2019-05-10 14:32:08 +0300382 instance02_control_net_static_ip:
383 list_join:
384 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300385 - [ { get_attr: [subnets, control_net_prefix] }, '87' ]
sgudza133b8e2019-05-10 14:32:08 +0300386 instance03_control_net_static_ip:
387 list_join:
388 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300389 - [ { get_attr: [subnets, control_net_prefix] }, '88' ]
sgudze6bff762019-05-23 18:15:49 +0300390 instance01_tenant_net_static_ip:
391 list_join:
392 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300393 - [ { get_attr: [subnets, tenant_net_prefix] }, '86' ]
sgudze6bff762019-05-23 18:15:49 +0300394 instance02_tenant_net_static_ip:
395 list_join:
396 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300397 - [ { get_attr: [subnets, tenant_net_prefix] }, '87' ]
sgudze6bff762019-05-23 18:15:49 +0300398 instance03_tenant_net_static_ip:
399 list_join:
400 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300401 - [ { get_attr: [subnets, tenant_net_prefix] }, '88' ]
sgudze6bff762019-05-23 18:15:49 +0300402 instance01_external_net_static_ip:
403 list_join:
404 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300405 - [ { get_attr: [subnets, external_net_prefix] }, '86' ]
sgudze6bff762019-05-23 18:15:49 +0300406 instance02_external_net_static_ip:
407 list_join:
408 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300409 - [ { get_attr: [subnets, external_net_prefix] }, '87' ]
sgudze6bff762019-05-23 18:15:49 +0300410 instance03_external_net_static_ip:
411 list_join:
412 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300413 - [ { get_attr: [subnets, external_net_prefix] }, '88' ]
sgudze6bff762019-05-23 18:15:49 +0300414
sgudza133b8e2019-05-10 14:32:08 +0300415 instance_config_host: { get_attr: [cfg01_node, instance_address] }
416
417 prx01_virtual:
418 type: MCP::SingleInstance
419 depends_on: [stacklight_mtr_cluster]
420 properties:
421 env_name: { get_param: env_name }
422 mcp_version: { get_param: mcp_version }
423 instance_domain: {get_param: instance_domain}
424 instance_name: prx01
425 instance_flavor: {get_param: cid_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300426 availability_zone: { get_param: vm_availability_zone }
sgudza133b8e2019-05-10 14:32:08 +0300427 underlay_userdata: { get_file: ./underlay-userdata.yaml }
428 control_net_static_ip:
429 list_join:
430 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300431 - [ { get_attr: [subnets, control_net_prefix] }, '221' ]
sgudze6bff762019-05-23 18:15:49 +0300432 tenant_net_static_ip:
433 list_join:
434 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300435 - [ { get_attr: [subnets, tenant_net_prefix] }, '221' ]
sgudze6bff762019-05-23 18:15:49 +0300436 external_net_static_ip:
437 list_join:
438 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300439 - [ { get_attr: [subnets, external_net_prefix] }, '221' ]
sgudze6bff762019-05-23 18:15:49 +0300440
sgudza133b8e2019-05-10 14:32:08 +0300441 instance_config_host: { get_attr: [cfg01_node, instance_address] }
442
443 prx02_virtual:
444 type: MCP::SingleInstance
445 depends_on: [prx01_virtual]
446 properties:
447 env_name: { get_param: env_name }
448 mcp_version: { get_param: mcp_version }
449 instance_domain: {get_param: instance_domain}
450 instance_name: prx02
451 instance_flavor: {get_param: cid_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300452 availability_zone: { get_param: vm_availability_zone }
sgudza133b8e2019-05-10 14:32:08 +0300453 underlay_userdata: { get_file: ./underlay-userdata.yaml }
454 control_net_static_ip:
455 list_join:
456 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300457 - [ { get_attr: [subnets, control_net_prefix] }, '222' ]
sgudze6bff762019-05-23 18:15:49 +0300458 tenant_net_static_ip:
459 list_join:
460 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300461 - [ { get_attr: [subnets, tenant_net_prefix] }, '222' ]
sgudze6bff762019-05-23 18:15:49 +0300462 external_net_static_ip:
463 list_join:
464 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300465 - [ { get_attr: [subnets, external_net_prefix] }, '222' ]
sgudze6bff762019-05-23 18:15:49 +0300466
sgudza133b8e2019-05-10 14:32:08 +0300467 instance_config_host: { get_attr: [cfg01_node, instance_address] }
468
469 cmp001_virtual:
470 type: MCP::Compute
471 depends_on: [prx02_virtual]
472 properties:
473 env_name: { get_param: env_name }
474 mcp_version: { get_param: mcp_version }
475 instance_domain: {get_param: instance_domain}
476 instance_name: cmp001
477 instance_flavor: {get_param: cmp_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300478 availability_zone: { get_param: vm_availability_zone }
sgudza133b8e2019-05-10 14:32:08 +0300479 underlay_userdata: { get_file: ./underlay-userdata.yaml }
480 control_net_static_ip:
481 list_join:
482 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300483 - [ { get_attr: [subnets, control_net_prefix] }, '101' ]
sgudze6bff762019-05-23 18:15:49 +0300484 tenant_net_static_ip:
485 list_join:
486 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300487 - [ { get_attr: [subnets, tenant_net_prefix] }, '101' ]
sgudze6bff762019-05-23 18:15:49 +0300488 external_net_static_ip:
489 list_join:
490 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300491 - [ { get_attr: [subnets, external_net_prefix] }, '101' ]
sgudze6bff762019-05-23 18:15:49 +0300492
sgudza133b8e2019-05-10 14:32:08 +0300493 instance_config_host: { get_attr: [cfg01_node, instance_address] }
494
495 cmp002_virtual:
496 type: MCP::Compute
497 depends_on: [cmp001_virtual]
498 properties:
499 env_name: { get_param: env_name }
500 mcp_version: { get_param: mcp_version }
501 instance_domain: {get_param: instance_domain}
502 instance_name: cmp002
503 instance_flavor: {get_param: cmp_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300504 availability_zone: { get_param: vm_availability_zone }
sgudza133b8e2019-05-10 14:32:08 +0300505 underlay_userdata: { get_file: ./underlay-userdata.yaml }
506 control_net_static_ip:
507 list_join:
508 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300509 - [ { get_attr: [subnets, control_net_prefix] }, '102' ]
sgudze6bff762019-05-23 18:15:49 +0300510 tenant_net_static_ip:
511 list_join:
512 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300513 - [ { get_attr: [subnets, tenant_net_prefix] }, '102' ]
sgudze6bff762019-05-23 18:15:49 +0300514 external_net_static_ip:
515 list_join:
516 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300517 - [ { get_attr: [subnets, external_net_prefix] }, '102' ]
sgudze6bff762019-05-23 18:15:49 +0300518
sgudza133b8e2019-05-10 14:32:08 +0300519 instance_config_host: { get_attr: [cfg01_node, instance_address] }
520
521 cmp003_virtual:
522 type: MCP::Compute
523 depends_on: [cmp002_virtual]
524 properties:
525 env_name: { get_param: env_name }
526 mcp_version: { get_param: mcp_version }
527 instance_domain: {get_param: instance_domain}
528 instance_name: cmp003
529 instance_flavor: {get_param: cmp_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300530 availability_zone: { get_param: vm_availability_zone }
sgudza133b8e2019-05-10 14:32:08 +0300531 underlay_userdata: { get_file: ./underlay-userdata.yaml }
532 control_net_static_ip:
533 list_join:
534 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300535 - [ { get_attr: [subnets, control_net_prefix] }, '103' ]
sgudze6bff762019-05-23 18:15:49 +0300536 tenant_net_static_ip:
537 list_join:
538 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300539 - [ { get_attr: [subnets, tenant_net_prefix] }, '103' ]
sgudze6bff762019-05-23 18:15:49 +0300540 external_net_static_ip:
541 list_join:
542 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300543 - [ { get_attr: [subnets, external_net_prefix] }, '103' ]
sgudze6bff762019-05-23 18:15:49 +0300544
sgudza133b8e2019-05-10 14:32:08 +0300545 instance_config_host: { get_attr: [cfg01_node, instance_address] }
546
547 cmp004_virtual:
548 type: MCP::Compute
549 depends_on: [cmp003_virtual]
550 properties:
551 env_name: { get_param: env_name }
552 mcp_version: { get_param: mcp_version }
553 instance_domain: {get_param: instance_domain}
554 instance_name: cmp004
555 instance_flavor: {get_param: cmp_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300556 availability_zone: { get_param: vm_availability_zone }
sgudza133b8e2019-05-10 14:32:08 +0300557 underlay_userdata: { get_file: ./underlay-userdata.yaml }
558 control_net_static_ip:
559 list_join:
560 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300561 - [ { get_attr: [subnets, control_net_prefix] }, '104' ]
sgudze6bff762019-05-23 18:15:49 +0300562 tenant_net_static_ip:
563 list_join:
564 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300565 - [ { get_attr: [subnets, tenant_net_prefix] }, '104' ]
sgudze6bff762019-05-23 18:15:49 +0300566 external_net_static_ip:
567 list_join:
568 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300569 - [ { get_attr: [subnets, external_net_prefix] }, '104' ]
sgudze6bff762019-05-23 18:15:49 +0300570
sgudza133b8e2019-05-10 14:32:08 +0300571 instance_config_host: { get_attr: [cfg01_node, instance_address] }
572
573 foundation_node:
574 type: MCP::FoundationNode
575 depends_on: [networks]
576 properties:
577 env_name: { get_param: env_name }
578 mcp_version: { get_param: mcp_version }
579 instance_domain: {get_param: instance_domain}
580 instance_name: foundation
Dennis Dmitrievcba86122019-05-24 13:41:46 +0300581 instance_image: { get_param: foundation_image }
sgudza133b8e2019-05-10 14:32:08 +0300582 instance_flavor: {get_param: foundation_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300583 availability_zone: { get_param: bm_availability_zone }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300584 management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] }
585 control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] }
586 tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] }
587 external_net: { list_join: ['-', [ 'external_net', { get_param: env_name } ]] }
sgudza133b8e2019-05-10 14:32:08 +0300588 underlay_userdata: { get_file: ./underlay--user-data-foundation.yaml }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300589 management_net_static_ip:
590 list_join:
591 - '.'
592 - [ { get_attr: [subnets, management_net_prefix] }, '5' ]
sgudza133b8e2019-05-10 14:32:08 +0300593 control_net_static_ip:
594 list_join:
595 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300596 - [ { get_attr: [subnets, control_net_prefix] }, '5' ]
sgudze6bff762019-05-23 18:15:49 +0300597 tenant_net_static_ip:
598 list_join:
599 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300600 - [ { get_attr: [subnets, tenant_net_prefix] }, '5' ]
sgudze6bff762019-05-23 18:15:49 +0300601 external_net_static_ip:
602 list_join:
603 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300604 - [ { get_attr: [subnets, external_net_prefix] }, '5' ]
sgudze6bff762019-05-23 18:15:49 +0300605
sgudza133b8e2019-05-10 14:32:08 +0300606 instance_config_host: { get_attr: [cfg01_node, instance_address] }
607
608outputs:
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300609 foundation_public_ip:
sgudza133b8e2019-05-10 14:32:08 +0300610 description: foundation node IP address (floating) from external network
611 value:
612 get_attr:
613 - foundation_node
614 - instance_floating_address
615...