blob: f95340f24209e7f5ded6a8ab348cc1bc1b089415 [file] [log] [blame]
sgudzb8819722019-05-16 22:34:31 +03001---
2
3heat_template_version: queens
4
5description: MCP environment for heat-cicd-k8s-genie
6
7parameters:
8 instance_domain:
9 type: string
10 default: heat-cicd-k8s-genie.local
11 mcp_version:
12 type: string
13 env_name:
14 type: string
15 control_subnet_cidr:
16 type: string
sgudzc9f50d12019-05-31 14:25:34 +030017 default: "10.6.0.0/24"
18 tenant_subnet_cidr:
19 type: string
20 default: "10.8.0.0/24"
21 external_subnet_cidr:
22 type: string
23 default: "192.168.200.0/24"
sgudzb8819722019-05-16 22:34:31 +030024 management_subnet_cidr:
25 type: string
sgudzc9f50d12019-05-31 14:25:34 +030026 default: "10.7.0.0/24"
sgudzb8819722019-05-16 22:34:31 +030027 management_subnet_cfg01_ip:
28 type: string
sgudzc9f50d12019-05-31 14:25:34 +030029 default: 10.7.0.15
sgudzb8819722019-05-16 22:34:31 +030030 management_subnet_gateway_ip:
31 type: string
sgudzc9f50d12019-05-31 14:25:34 +030032 default: 10.7.0.1
33 management_subnet_pool_start:
34 type: string
35 default: 10.7.0.20
36 management_subnet_pool_end:
37 type: string
38 default: 10.7.0.90
39 salt_master_control_ip:
40 type: string
41 default: 10.6.0.15
sgudzb8819722019-05-16 22:34:31 +030042
43 key_pair:
44 type: string
45
46 ctl_flavor:
47 type: string
48 cfg_flavor:
49 type: string
50 cid_flavor:
51 type: string
52 kvm_fake_flavor:
53 type: string
54 mon_flavor:
55 type: string
56 log_flavor:
57 type: string
58 mtr_flavor:
59 type: string
60 cmp_flavor:
61 type: string
62 foundation_flavor:
63 type: string
64
65 net_public:
66 type: string
67
Dennis Dmitrievcba86122019-05-24 13:41:46 +030068 foundation_image:
69 type: string
70
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +030071 bm_availability_zone:
72 type: string
73 vm_availability_zone:
74 type: string
75
sgudzb8819722019-05-16 22:34:31 +030076resources:
77 networks:
78 type: MCP::Networks
79 properties:
80 stack_name: { get_param: "OS::stack_name" }
81 env_name: { get_param: env_name }
82
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +030083 subnets:
84 depends_on: [networks]
85 type: MCP::Subnets
86 properties:
87 stack_name: { get_param: "OS::stack_name" }
88 env_name: { get_param: env_name }
89 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 } ]] }
sgudzc9f50d12019-05-31 14:25:34 +030093 control_subnet_cidr: { get_param: control_subnet_cidr }
94 tenant_subnet_cidr: { get_param: tenant_subnet_cidr }
95 external_subnet_cidr: { get_param: external_subnet_cidr }
96 management_subnet_cidr: { get_param: management_subnet_cidr }
97 management_subnet_gateway_ip: { get_param: management_subnet_gateway_ip }
98 management_subnet_pool_start: { get_param: management_subnet_pool_start }
99 management_subnet_pool_end: { get_param: management_subnet_pool_end }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300100
sgudzb8819722019-05-16 22:34:31 +0300101 #flavors:
102 # type: MCP::Flavors
103
104 cfg01_node:
105 type: MCP::MasterNode
sgudz22628a32019-06-12 11:34:04 +0300106 depends_on: [subnets]
sgudzb8819722019-05-16 22:34:31 +0300107 properties:
108 env_name: { get_param: env_name }
109 mcp_version: { get_param: mcp_version }
110 cfg01_flavor: { get_param: cfg_flavor }
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300111 availability_zone: { get_param: bm_availability_zone }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300112 management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] }
113 control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] }
114 tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] }
115 external_net: { list_join: ['-', [ 'external_net', { get_param: env_name } ]] }
sgudzc9f50d12019-05-31 14:25:34 +0300116 salt_master_control_ip: { get_param: salt_master_control_ip }
117 management_subnet_cfg01_ip: { get_param: management_subnet_cfg01_ip }
sgudze6bff762019-05-23 18:15:49 +0300118 tenant_net_static_ip:
119 list_join:
120 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300121 - [ { get_attr: [subnets, tenant_net_prefix] }, '15' ]
sgudze6bff762019-05-23 18:15:49 +0300122 external_net_static_ip:
123 list_join:
124 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300125 - [ { get_attr: [subnets, external_net_prefix] }, '15' ]
sgudzb8819722019-05-16 22:34:31 +0300126 instance_name: cfg01
127 instance_domain: {get_param: instance_domain}
sgudzb8819722019-05-16 22:34:31 +0300128
129 control_cluster:
130 type: MCP::MultipleInstance
131 depends_on: [cfg01_node]
132 properties:
133 env_name: { get_param: env_name }
134 mcp_version: { get_param: mcp_version }
135 instance_domain: {get_param: instance_domain}
136 instance01_name: ctl01
137 instance02_name: ctl02
138 instance03_name: ctl03
139 instance01_role: [k8s_controller]
140 instance_flavor: {get_param: ctl_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300141 availability_zone: { get_param: vm_availability_zone }
sgudzb8819722019-05-16 22:34:31 +0300142 underlay_userdata: { get_file: ./underlay-userdata.yaml }
143 instance01_control_net_static_ip:
144 list_join:
145 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300146 - [ { get_attr: [subnets, control_net_prefix] }, '11' ]
sgudzb8819722019-05-16 22:34:31 +0300147 instance02_control_net_static_ip:
148 list_join:
149 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300150 - [ { get_attr: [subnets, control_net_prefix] }, '12' ]
sgudzb8819722019-05-16 22:34:31 +0300151 instance03_control_net_static_ip:
152 list_join:
153 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300154 - [ { get_attr: [subnets, control_net_prefix] }, '13' ]
sgudze6bff762019-05-23 18:15:49 +0300155 instance01_tenant_net_static_ip:
156 list_join:
157 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300158 - [ { get_attr: [subnets, tenant_net_prefix] }, '11' ]
sgudze6bff762019-05-23 18:15:49 +0300159 instance02_tenant_net_static_ip:
160 list_join:
161 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300162 - [ { get_attr: [subnets, tenant_net_prefix] }, '12' ]
sgudze6bff762019-05-23 18:15:49 +0300163 instance03_tenant_net_static_ip:
164 list_join:
165 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300166 - [ { get_attr: [subnets, tenant_net_prefix] }, '13' ]
sgudze6bff762019-05-23 18:15:49 +0300167 instance01_external_net_static_ip:
168 list_join:
169 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300170 - [ { get_attr: [subnets, external_net_prefix] }, '11' ]
sgudze6bff762019-05-23 18:15:49 +0300171 instance02_external_net_static_ip:
172 list_join:
173 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300174 - [ { get_attr: [subnets, external_net_prefix] }, '12' ]
sgudze6bff762019-05-23 18:15:49 +0300175 instance03_external_net_static_ip:
176 list_join:
177 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300178 - [ { get_attr: [subnets, external_net_prefix] }, '13' ]
sgudzb8819722019-05-16 22:34:31 +0300179
180 instance_config_host: { get_attr: [cfg01_node, instance_address] }
181
182 fake_kvm_cluster:
183 type: MCP::MultipleInstance
184 depends_on: [control_cluster]
185 properties:
186 env_name: { get_param: env_name }
187 mcp_version: { get_param: mcp_version }
188 instance_domain: {get_param: instance_domain}
189 instance01_name: kvm01
190 instance02_name: kvm02
191 instance03_name: kvm03
192 instance_flavor: {get_param: kvm_fake_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300193 availability_zone: { get_param: vm_availability_zone }
sgudzb8819722019-05-16 22:34:31 +0300194 underlay_userdata: { get_file: ./underlay-userdata.yaml }
195 instance01_control_net_static_ip:
196 list_join:
197 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300198 - [ { get_attr: [subnets, control_net_prefix] }, '241' ]
sgudzb8819722019-05-16 22:34:31 +0300199 instance02_control_net_static_ip:
200 list_join:
201 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300202 - [ { get_attr: [subnets, control_net_prefix] }, '242' ]
sgudzb8819722019-05-16 22:34:31 +0300203 instance03_control_net_static_ip:
204 list_join:
205 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300206 - [ { get_attr: [subnets, control_net_prefix] }, '243' ]
sgudze6bff762019-05-23 18:15:49 +0300207 instance01_tenant_net_static_ip:
208 list_join:
209 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300210 - [ { get_attr: [subnets, tenant_net_prefix] }, '241' ]
sgudze6bff762019-05-23 18:15:49 +0300211 instance02_tenant_net_static_ip:
212 list_join:
213 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300214 - [ { get_attr: [subnets, tenant_net_prefix] }, '242' ]
sgudze6bff762019-05-23 18:15:49 +0300215 instance03_tenant_net_static_ip:
216 list_join:
217 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300218 - [ { get_attr: [subnets, tenant_net_prefix] }, '243' ]
sgudze6bff762019-05-23 18:15:49 +0300219 instance01_external_net_static_ip:
220 list_join:
221 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300222 - [ { get_attr: [subnets, external_net_prefix] }, '241' ]
sgudze6bff762019-05-23 18:15:49 +0300223 instance02_external_net_static_ip:
224 list_join:
225 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300226 - [ { get_attr: [subnets, external_net_prefix] }, '242' ]
sgudze6bff762019-05-23 18:15:49 +0300227 instance03_external_net_static_ip:
228 list_join:
229 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300230 - [ { get_attr: [subnets, external_net_prefix] }, '243' ]
sgudzb8819722019-05-16 22:34:31 +0300231
232 instance_config_host: { get_attr: [cfg01_node, instance_address] }
233
234 cicd_cluster:
235 type: MCP::MultipleInstance
236 depends_on: [fake_kvm_cluster]
237 properties:
238 env_name: { get_param: env_name }
239 mcp_version: { get_param: mcp_version }
240 instance_domain: {get_param: instance_domain}
241 instance01_name: cid01
242 instance02_name: cid02
243 instance03_name: cid03
244 instance_flavor: {get_param: cid_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300245 availability_zone: { get_param: vm_availability_zone }
sgudzb8819722019-05-16 22:34:31 +0300246 underlay_userdata: { get_file: ./underlay-userdata.yaml }
247 instance01_control_net_static_ip:
248 list_join:
249 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300250 - [ { get_attr: [subnets, control_net_prefix] }, '91' ]
sgudzb8819722019-05-16 22:34:31 +0300251 instance02_control_net_static_ip:
252 list_join:
253 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300254 - [ { get_attr: [subnets, control_net_prefix] }, '92' ]
sgudzb8819722019-05-16 22:34:31 +0300255 instance03_control_net_static_ip:
256 list_join:
257 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300258 - [ { get_attr: [subnets, control_net_prefix] }, '93' ]
sgudze6bff762019-05-23 18:15:49 +0300259 instance01_tenant_net_static_ip:
260 list_join:
261 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300262 - [ { get_attr: [subnets, tenant_net_prefix] }, '91' ]
sgudze6bff762019-05-23 18:15:49 +0300263 instance02_tenant_net_static_ip:
264 list_join:
265 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300266 - [ { get_attr: [subnets, tenant_net_prefix] }, '92' ]
sgudze6bff762019-05-23 18:15:49 +0300267 instance03_tenant_net_static_ip:
268 list_join:
269 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300270 - [ { get_attr: [subnets, tenant_net_prefix] }, '93' ]
sgudze6bff762019-05-23 18:15:49 +0300271 instance01_external_net_static_ip:
272 list_join:
273 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300274 - [ { get_attr: [subnets, external_net_prefix] }, '91' ]
sgudze6bff762019-05-23 18:15:49 +0300275 instance02_external_net_static_ip:
276 list_join:
277 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300278 - [ { get_attr: [subnets, external_net_prefix] }, '92' ]
sgudze6bff762019-05-23 18:15:49 +0300279 instance03_external_net_static_ip:
280 list_join:
281 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300282 - [ { get_attr: [subnets, external_net_prefix] }, '93' ]
sgudzb8819722019-05-16 22:34:31 +0300283
284 instance_config_host: { get_attr: [cfg01_node, instance_address] }
285
286 prx01_virtual:
287 type: MCP::SingleInstance
288 depends_on: [cicd_cluster]
289 properties:
290 env_name: { get_param: env_name }
291 mcp_version: { get_param: mcp_version }
292 instance_domain: {get_param: instance_domain}
293 instance_name: prx01
294 instance_flavor: {get_param: cid_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300295 availability_zone: { get_param: vm_availability_zone }
sgudzb8819722019-05-16 22:34:31 +0300296 underlay_userdata: { get_file: ./underlay-userdata.yaml }
297 control_net_static_ip:
298 list_join:
299 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300300 - [ { get_attr: [subnets, control_net_prefix] }, '221' ]
sgudze6bff762019-05-23 18:15:49 +0300301 tenant_net_static_ip:
302 list_join:
303 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300304 - [ { get_attr: [subnets, tenant_net_prefix] }, '221' ]
sgudze6bff762019-05-23 18:15:49 +0300305 external_net_static_ip:
306 list_join:
307 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300308 - [ { get_attr: [subnets, external_net_prefix] }, '221' ]
sgudze6bff762019-05-23 18:15:49 +0300309
sgudzb8819722019-05-16 22:34:31 +0300310 instance_config_host: { get_attr: [cfg01_node, instance_address] }
311
312 prx02_virtual:
313 type: MCP::SingleInstance
314 depends_on: [prx01_virtual]
315 properties:
316 env_name: { get_param: env_name }
317 mcp_version: { get_param: mcp_version }
318 instance_domain: {get_param: instance_domain}
319 instance_name: prx02
320 instance_flavor: {get_param: cid_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300321 availability_zone: { get_param: vm_availability_zone }
sgudzb8819722019-05-16 22:34:31 +0300322 underlay_userdata: { get_file: ./underlay-userdata.yaml }
323 control_net_static_ip:
324 list_join:
325 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300326 - [ { get_attr: [subnets, control_net_prefix] }, '222' ]
sgudze6bff762019-05-23 18:15:49 +0300327 tenant_net_static_ip:
328 list_join:
329 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300330 - [ { get_attr: [subnets, tenant_net_prefix] }, '222' ]
sgudze6bff762019-05-23 18:15:49 +0300331 external_net_static_ip:
332 list_join:
333 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300334 - [ { get_attr: [subnets, external_net_prefix] }, '222' ]
sgudze6bff762019-05-23 18:15:49 +0300335
sgudzb8819722019-05-16 22:34:31 +0300336 instance_config_host: { get_attr: [cfg01_node, instance_address] }
337
338 cmp001_virtual:
339 type: MCP::Compute
340 depends_on: [prx02_virtual]
341 properties:
342 env_name: { get_param: env_name }
343 mcp_version: { get_param: mcp_version }
344 instance_domain: {get_param: instance_domain}
345 instance_name: cmp001
346 instance_flavor: {get_param: cmp_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300347 availability_zone: { get_param: vm_availability_zone }
sgudzb8819722019-05-16 22:34:31 +0300348 underlay_userdata: { get_file: ./underlay-userdata.yaml }
349 control_net_static_ip:
350 list_join:
351 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300352 - [ { get_attr: [subnets, control_net_prefix] }, '101' ]
sgudze6bff762019-05-23 18:15:49 +0300353 tenant_net_static_ip:
354 list_join:
355 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300356 - [ { get_attr: [subnets, tenant_net_prefix] }, '101' ]
sgudze6bff762019-05-23 18:15:49 +0300357 external_net_static_ip:
358 list_join:
359 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300360 - [ { get_attr: [subnets, external_net_prefix] }, '101' ]
sgudze6bff762019-05-23 18:15:49 +0300361
sgudzb8819722019-05-16 22:34:31 +0300362 instance_config_host: { get_attr: [cfg01_node, instance_address] }
363
364 cmp002_virtual:
365 type: MCP::Compute
366 depends_on: [cmp001_virtual]
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}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300373 availability_zone: { get_param: vm_availability_zone }
sgudzb8819722019-05-16 22:34:31 +0300374 underlay_userdata: { get_file: ./underlay-userdata.yaml }
375 control_net_static_ip:
376 list_join:
377 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300378 - [ { get_attr: [subnets, control_net_prefix] }, '102' ]
sgudze6bff762019-05-23 18:15:49 +0300379 tenant_net_static_ip:
380 list_join:
381 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300382 - [ { get_attr: [subnets, tenant_net_prefix] }, '102' ]
sgudze6bff762019-05-23 18:15:49 +0300383 external_net_static_ip:
384 list_join:
385 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300386 - [ { get_attr: [subnets, external_net_prefix] }, '102' ]
sgudze6bff762019-05-23 18:15:49 +0300387
sgudzb8819722019-05-16 22:34:31 +0300388 instance_config_host: { get_attr: [cfg01_node, instance_address] }
389
390 cmp003_virtual:
391 type: MCP::Compute
392 depends_on: [cmp002_virtual]
393 properties:
394 env_name: { get_param: env_name }
395 mcp_version: { get_param: mcp_version }
396 instance_domain: {get_param: instance_domain}
397 instance_name: cmp003
398 instance_flavor: {get_param: cmp_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300399 availability_zone: { get_param: vm_availability_zone }
sgudzb8819722019-05-16 22:34:31 +0300400 underlay_userdata: { get_file: ./underlay-userdata.yaml }
401 control_net_static_ip:
402 list_join:
403 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300404 - [ { get_attr: [subnets, control_net_prefix] }, '103' ]
sgudze6bff762019-05-23 18:15:49 +0300405 tenant_net_static_ip:
406 list_join:
407 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300408 - [ { get_attr: [subnets, tenant_net_prefix] }, '103' ]
sgudze6bff762019-05-23 18:15:49 +0300409 external_net_static_ip:
410 list_join:
411 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300412 - [ { get_attr: [subnets, external_net_prefix] }, '103' ]
sgudze6bff762019-05-23 18:15:49 +0300413
sgudzb8819722019-05-16 22:34:31 +0300414 instance_config_host: { get_attr: [cfg01_node, instance_address] }
415
416 cmp004_virtual:
417 type: MCP::Compute
418 depends_on: [cmp003_virtual]
419 properties:
420 env_name: { get_param: env_name }
421 mcp_version: { get_param: mcp_version }
422 instance_domain: {get_param: instance_domain}
423 instance_name: cmp004
424 instance_flavor: {get_param: cmp_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300425 availability_zone: { get_param: vm_availability_zone }
sgudzb8819722019-05-16 22:34:31 +0300426 underlay_userdata: { get_file: ./underlay-userdata.yaml }
427 control_net_static_ip:
428 list_join:
429 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300430 - [ { get_attr: [subnets, control_net_prefix] }, '104' ]
sgudze6bff762019-05-23 18:15:49 +0300431 tenant_net_static_ip:
432 list_join:
433 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300434 - [ { get_attr: [subnets, tenant_net_prefix] }, '104' ]
sgudze6bff762019-05-23 18:15:49 +0300435 external_net_static_ip:
436 list_join:
437 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300438 - [ { get_attr: [subnets, external_net_prefix] }, '104' ]
sgudze6bff762019-05-23 18:15:49 +0300439
sgudzb8819722019-05-16 22:34:31 +0300440 instance_config_host: { get_attr: [cfg01_node, instance_address] }
441
442 foundation_node:
443 type: MCP::FoundationNode
sgudz22628a32019-06-12 11:34:04 +0300444 depends_on: [subnets]
sgudzb8819722019-05-16 22:34:31 +0300445 properties:
446 env_name: { get_param: env_name }
447 mcp_version: { get_param: mcp_version }
448 instance_domain: {get_param: instance_domain}
449 instance_name: foundation
Dennis Dmitrievcba86122019-05-24 13:41:46 +0300450 instance_image: { get_param: foundation_image }
sgudzb8819722019-05-16 22:34:31 +0300451 instance_flavor: {get_param: foundation_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300452 availability_zone: { get_param: bm_availability_zone }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300453 management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] }
454 control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] }
455 tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] }
456 external_net: { list_join: ['-', [ 'external_net', { get_param: env_name } ]] }
sgudzc9f50d12019-05-31 14:25:34 +0300457 management_subnet_gateway_ip: { get_param: management_subnet_gateway_ip }
sgudzb8819722019-05-16 22:34:31 +0300458 underlay_userdata: { get_file: ./underlay--user-data-foundation.yaml }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300459 management_net_static_ip:
460 list_join:
461 - '.'
462 - [ { get_attr: [subnets, management_net_prefix] }, '5' ]
sgudzb8819722019-05-16 22:34:31 +0300463 control_net_static_ip:
464 list_join:
465 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300466 - [ { get_attr: [subnets, control_net_prefix] }, '5' ]
sgudze6bff762019-05-23 18:15:49 +0300467 tenant_net_static_ip:
468 list_join:
469 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300470 - [ { get_attr: [subnets, tenant_net_prefix] }, '5' ]
sgudze6bff762019-05-23 18:15:49 +0300471 external_net_static_ip:
472 list_join:
473 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300474 - [ { get_attr: [subnets, external_net_prefix] }, '5' ]
sgudze6bff762019-05-23 18:15:49 +0300475
sgudzb8819722019-05-16 22:34:31 +0300476 instance_config_host: { get_attr: [cfg01_node, instance_address] }
477
478outputs:
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300479 foundation_public_ip:
sgudzb8819722019-05-16 22:34:31 +0300480 description: foundation node IP address (floating) from external network
481 value:
482 get_attr:
483 - foundation_node
484 - instance_floating_address
485...