blob: b2832745f0feb611b8d023f95ec47d9f600bd1b2 [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
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"
sgudza133b8e2019-05-10 14:32:08 +030024 management_subnet_cidr:
25 type: string
sgudzc9f50d12019-05-31 14:25:34 +030026 default: "10.7.0.0/24"
sgudza133b8e2019-05-10 14:32:08 +030027 management_subnet_cfg01_ip:
28 type: string
sgudzc9f50d12019-05-31 14:25:34 +030029 default: 10.7.0.15
sgudza133b8e2019-05-10 14:32:08 +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
sgudza133b8e2019-05-10 14:32:08 +030042 key_pair:
43 type: string
44
45 ctl_flavor:
46 type: string
47 cfg_flavor:
48 type: string
49 cid_flavor:
50 type: string
51 kvm_fake_flavor:
52 type: string
53 mon_flavor:
54 type: string
55 log_flavor:
56 type: string
57 mtr_flavor:
58 type: string
59 cmp_flavor:
60 type: string
61 foundation_flavor:
62 type: string
63
64 net_public:
65 type: string
66
Dennis Dmitrievcba86122019-05-24 13:41:46 +030067 foundation_image:
68 type: string
69
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +030070 bm_availability_zone:
71 type: string
72 vm_availability_zone:
73 type: string
74
sgudza133b8e2019-05-10 14:32:08 +030075resources:
76 networks:
77 type: MCP::Networks
78 properties:
79 stack_name: { get_param: "OS::stack_name" }
80 env_name: { get_param: env_name }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +030081 subnets:
82 depends_on: [networks]
83 type: MCP::Subnets
84 properties:
85 stack_name: { get_param: "OS::stack_name" }
86 env_name: { get_param: env_name }
87 management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] }
88 control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] }
89 tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] }
90 external_net: { list_join: ['-', [ 'external_net', { get_param: env_name } ]] }
sgudzc9f50d12019-05-31 14:25:34 +030091 control_subnet_cidr: { get_param: control_subnet_cidr }
92 tenant_subnet_cidr: { get_param: tenant_subnet_cidr }
93 external_subnet_cidr: { get_param: external_subnet_cidr }
94 management_subnet_cidr: { get_param: management_subnet_cidr }
95 management_subnet_gateway_ip: { get_param: management_subnet_gateway_ip }
96 management_subnet_pool_start: { get_param: management_subnet_pool_start }
97 management_subnet_pool_end: { get_param: management_subnet_pool_end }
sgudza133b8e2019-05-10 14:32:08 +030098
99 #flavors:
100 # type: MCP::Flavors
101
102 cfg01_node:
103 type: MCP::MasterNode
104 depends_on: [networks]
105 properties:
106 env_name: { get_param: env_name }
107 mcp_version: { get_param: mcp_version }
108 cfg01_flavor: { get_param: cfg_flavor }
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300109 availability_zone: { get_param: bm_availability_zone }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300110 management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] }
111 control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] }
112 tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] }
113 external_net: { list_join: ['-', [ 'external_net', { get_param: env_name } ]] }
sgudzc9f50d12019-05-31 14:25:34 +0300114 salt_master_control_ip: { get_param: salt_master_control_ip }
115 management_subnet_cfg01_ip: { get_param: management_subnet_cfg01_ip }
sgudze6bff762019-05-23 18:15:49 +0300116 tenant_net_static_ip:
117 list_join:
118 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300119 - [ { get_attr: [subnets, tenant_net_prefix] }, '15' ]
sgudze6bff762019-05-23 18:15:49 +0300120 external_net_static_ip:
121 list_join:
122 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300123 - [ { get_attr: [subnets, external_net_prefix] }, '15' ]
sgudza133b8e2019-05-10 14:32:08 +0300124 instance_name: cfg01
125 instance_domain: {get_param: instance_domain}
sgudza133b8e2019-05-10 14:32:08 +0300126
127 control_cluster:
128 type: MCP::MultipleInstance
129 depends_on: [cfg01_node]
130 properties:
131 env_name: { get_param: env_name }
132 mcp_version: { get_param: mcp_version }
133 instance_domain: {get_param: instance_domain}
134 instance01_name: ctl01
135 instance02_name: ctl02
136 instance03_name: ctl03
137 instance01_role: k8s_controller
138 instance_flavor: {get_param: ctl_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300139 availability_zone: { get_param: vm_availability_zone }
sgudza133b8e2019-05-10 14:32:08 +0300140 underlay_userdata: { get_file: ./underlay-userdata.yaml }
141 instance01_control_net_static_ip:
142 list_join:
143 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300144 - [ { get_attr: [subnets, control_net_prefix] }, '11' ]
sgudza133b8e2019-05-10 14:32:08 +0300145 instance02_control_net_static_ip:
146 list_join:
147 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300148 - [ { get_attr: [subnets, control_net_prefix] }, '12' ]
sgudza133b8e2019-05-10 14:32:08 +0300149 instance03_control_net_static_ip:
150 list_join:
151 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300152 - [ { get_attr: [subnets, control_net_prefix] }, '13' ]
sgudze6bff762019-05-23 18:15:49 +0300153 instance01_tenant_net_static_ip:
154 list_join:
155 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300156 - [ { get_attr: [subnets, tenant_net_prefix] }, '11' ]
sgudze6bff762019-05-23 18:15:49 +0300157 instance02_tenant_net_static_ip:
158 list_join:
159 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300160 - [ { get_attr: [subnets, tenant_net_prefix] }, '12' ]
sgudze6bff762019-05-23 18:15:49 +0300161 instance03_tenant_net_static_ip:
162 list_join:
163 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300164 - [ { get_attr: [subnets, tenant_net_prefix] }, '13' ]
sgudze6bff762019-05-23 18:15:49 +0300165 instance01_external_net_static_ip:
166 list_join:
167 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300168 - [ { get_attr: [subnets, external_net_prefix] }, '11' ]
sgudze6bff762019-05-23 18:15:49 +0300169 instance02_external_net_static_ip:
170 list_join:
171 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300172 - [ { get_attr: [subnets, external_net_prefix] }, '12' ]
sgudze6bff762019-05-23 18:15:49 +0300173 instance03_external_net_static_ip:
174 list_join:
175 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300176 - [ { get_attr: [subnets, external_net_prefix] }, '13' ]
sgudza133b8e2019-05-10 14:32:08 +0300177
178 instance_config_host: { get_attr: [cfg01_node, instance_address] }
179
180 fake_kvm_cluster:
181 type: MCP::MultipleInstance
182 depends_on: [control_cluster]
183 properties:
184 env_name: { get_param: env_name }
185 mcp_version: { get_param: mcp_version }
186 instance_domain: {get_param: instance_domain}
187 instance01_name: kvm01
188 instance02_name: kvm02
189 instance03_name: kvm03
190 instance_flavor: {get_param: kvm_fake_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300191 availability_zone: { get_param: vm_availability_zone }
sgudza133b8e2019-05-10 14:32:08 +0300192 underlay_userdata: { get_file: ./underlay-userdata.yaml }
193 instance01_control_net_static_ip:
194 list_join:
195 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300196 - [ { get_attr: [subnets, control_net_prefix] }, '241' ]
sgudza133b8e2019-05-10 14:32:08 +0300197 instance02_control_net_static_ip:
198 list_join:
199 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300200 - [ { get_attr: [subnets, control_net_prefix] }, '242' ]
sgudza133b8e2019-05-10 14:32:08 +0300201 instance03_control_net_static_ip:
202 list_join:
203 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300204 - [ { get_attr: [subnets, control_net_prefix] }, '243' ]
sgudze6bff762019-05-23 18:15:49 +0300205 instance01_tenant_net_static_ip:
206 list_join:
207 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300208 - [ { get_attr: [subnets, tenant_net_prefix] }, '241' ]
sgudze6bff762019-05-23 18:15:49 +0300209 instance02_tenant_net_static_ip:
210 list_join:
211 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300212 - [ { get_attr: [subnets, tenant_net_prefix] }, '242' ]
sgudze6bff762019-05-23 18:15:49 +0300213 instance03_tenant_net_static_ip:
214 list_join:
215 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300216 - [ { get_attr: [subnets, tenant_net_prefix] }, '243' ]
sgudze6bff762019-05-23 18:15:49 +0300217 instance01_external_net_static_ip:
218 list_join:
219 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300220 - [ { get_attr: [subnets, external_net_prefix] }, '241' ]
sgudze6bff762019-05-23 18:15:49 +0300221 instance02_external_net_static_ip:
222 list_join:
223 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300224 - [ { get_attr: [subnets, external_net_prefix] }, '242' ]
sgudze6bff762019-05-23 18:15:49 +0300225 instance03_external_net_static_ip:
226 list_join:
227 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300228 - [ { get_attr: [subnets, external_net_prefix] }, '243' ]
sgudza133b8e2019-05-10 14:32:08 +0300229
230 instance_config_host: { get_attr: [cfg01_node, instance_address] }
231
232 cicd_cluster:
233 type: MCP::MultipleInstance
234 depends_on: [fake_kvm_cluster]
235 properties:
236 env_name: { get_param: env_name }
237 mcp_version: { get_param: mcp_version }
238 instance_domain: {get_param: instance_domain}
239 instance01_name: cid01
240 instance02_name: cid02
241 instance03_name: cid03
242 instance_flavor: {get_param: cid_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300243 availability_zone: { get_param: vm_availability_zone }
sgudza133b8e2019-05-10 14:32:08 +0300244 underlay_userdata: { get_file: ./underlay-userdata.yaml }
245 instance01_control_net_static_ip:
246 list_join:
247 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300248 - [ { get_attr: [subnets, control_net_prefix] }, '91' ]
sgudza133b8e2019-05-10 14:32:08 +0300249 instance02_control_net_static_ip:
250 list_join:
251 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300252 - [ { get_attr: [subnets, control_net_prefix] }, '92' ]
sgudza133b8e2019-05-10 14:32:08 +0300253 instance03_control_net_static_ip:
254 list_join:
255 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300256 - [ { get_attr: [subnets, control_net_prefix] }, '93' ]
sgudze6bff762019-05-23 18:15:49 +0300257 instance01_tenant_net_static_ip:
258 list_join:
259 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300260 - [ { get_attr: [subnets, tenant_net_prefix] }, '91' ]
sgudze6bff762019-05-23 18:15:49 +0300261 instance02_tenant_net_static_ip:
262 list_join:
263 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300264 - [ { get_attr: [subnets, tenant_net_prefix] }, '92' ]
sgudze6bff762019-05-23 18:15:49 +0300265 instance03_tenant_net_static_ip:
266 list_join:
267 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300268 - [ { get_attr: [subnets, tenant_net_prefix] }, '93' ]
sgudze6bff762019-05-23 18:15:49 +0300269 instance01_external_net_static_ip:
270 list_join:
271 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300272 - [ { get_attr: [subnets, external_net_prefix] }, '91' ]
sgudze6bff762019-05-23 18:15:49 +0300273 instance02_external_net_static_ip:
274 list_join:
275 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300276 - [ { get_attr: [subnets, external_net_prefix] }, '92' ]
sgudze6bff762019-05-23 18:15:49 +0300277 instance03_external_net_static_ip:
278 list_join:
279 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300280 - [ { get_attr: [subnets, external_net_prefix] }, '93' ]
sgudza133b8e2019-05-10 14:32:08 +0300281
282 instance_config_host: { get_attr: [cfg01_node, instance_address] }
283
284 stacklight_monitor_cluster:
285 type: MCP::MultipleInstance
286 depends_on: [cicd_cluster]
287 properties:
288 env_name: { get_param: env_name }
289 mcp_version: { get_param: mcp_version }
290 instance_domain: {get_param: instance_domain}
291 instance01_name: mon01
292 instance02_name: mon02
293 instance03_name: mon03
294 instance_flavor: {get_param: mon_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300295 availability_zone: { get_param: vm_availability_zone }
sgudza133b8e2019-05-10 14:32:08 +0300296 underlay_userdata: { get_file: ./underlay-userdata.yaml }
297 instance01_control_net_static_ip:
298 list_join:
299 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300300 - [ { get_attr: [subnets, control_net_prefix] }, '71' ]
sgudza133b8e2019-05-10 14:32:08 +0300301 instance02_control_net_static_ip:
302 list_join:
303 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300304 - [ { get_attr: [subnets, control_net_prefix] }, '72' ]
sgudza133b8e2019-05-10 14:32:08 +0300305 instance03_control_net_static_ip:
306 list_join:
307 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300308 - [ { get_attr: [subnets, control_net_prefix] }, '73' ]
sgudze6bff762019-05-23 18:15:49 +0300309 instance01_tenant_net_static_ip:
310 list_join:
311 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300312 - [ { get_attr: [subnets, tenant_net_prefix] }, '71' ]
sgudze6bff762019-05-23 18:15:49 +0300313 instance02_tenant_net_static_ip:
314 list_join:
315 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300316 - [ { get_attr: [subnets, tenant_net_prefix] }, '72' ]
sgudze6bff762019-05-23 18:15:49 +0300317 instance03_tenant_net_static_ip:
318 list_join:
319 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300320 - [ { get_attr: [subnets, tenant_net_prefix] }, '73' ]
sgudze6bff762019-05-23 18:15:49 +0300321 instance01_external_net_static_ip:
322 list_join:
323 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300324 - [ { get_attr: [subnets, external_net_prefix] }, '71' ]
sgudze6bff762019-05-23 18:15:49 +0300325 instance02_external_net_static_ip:
326 list_join:
327 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300328 - [ { get_attr: [subnets, external_net_prefix] }, '72' ]
sgudze6bff762019-05-23 18:15:49 +0300329 instance03_external_net_static_ip:
330 list_join:
331 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300332 - [ { get_attr: [subnets, external_net_prefix] }, '73' ]
sgudze6bff762019-05-23 18:15:49 +0300333
sgudza133b8e2019-05-10 14:32:08 +0300334 instance_config_host: { get_attr: [cfg01_node, instance_address] }
335
336 stacklight_log_cluster:
337 type: MCP::MultipleInstance
338 depends_on: [stacklight_monitor_cluster]
339 properties:
340 env_name: { get_param: env_name }
341 mcp_version: { get_param: mcp_version }
342 instance_domain: {get_param: instance_domain}
343 instance01_name: log01
344 instance02_name: log02
345 instance03_name: log03
346 instance_flavor: {get_param: log_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300347 availability_zone: { get_param: vm_availability_zone }
sgudza133b8e2019-05-10 14:32:08 +0300348 underlay_userdata: { get_file: ./underlay-userdata.yaml }
349 instance01_control_net_static_ip:
350 list_join:
351 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300352 - [ { get_attr: [subnets, control_net_prefix] }, '61' ]
sgudza133b8e2019-05-10 14:32:08 +0300353 instance02_control_net_static_ip:
354 list_join:
355 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300356 - [ { get_attr: [subnets, control_net_prefix] }, '62' ]
sgudza133b8e2019-05-10 14:32:08 +0300357 instance03_control_net_static_ip:
358 list_join:
359 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300360 - [ { get_attr: [subnets, control_net_prefix] }, '63' ]
sgudze6bff762019-05-23 18:15:49 +0300361 instance01_tenant_net_static_ip:
362 list_join:
363 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300364 - [ { get_attr: [subnets, tenant_net_prefix] }, '61' ]
sgudze6bff762019-05-23 18:15:49 +0300365 instance02_tenant_net_static_ip:
366 list_join:
367 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300368 - [ { get_attr: [subnets, tenant_net_prefix] }, '62' ]
sgudze6bff762019-05-23 18:15:49 +0300369 instance03_tenant_net_static_ip:
370 list_join:
371 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300372 - [ { get_attr: [subnets, tenant_net_prefix] }, '63' ]
sgudze6bff762019-05-23 18:15:49 +0300373 instance01_external_net_static_ip:
374 list_join:
375 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300376 - [ { get_attr: [subnets, external_net_prefix] }, '61' ]
sgudze6bff762019-05-23 18:15:49 +0300377 instance02_external_net_static_ip:
378 list_join:
379 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300380 - [ { get_attr: [subnets, external_net_prefix] }, '62' ]
sgudze6bff762019-05-23 18:15:49 +0300381 instance03_external_net_static_ip:
382 list_join:
383 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300384 - [ { get_attr: [subnets, external_net_prefix] }, '63' ]
sgudze6bff762019-05-23 18:15:49 +0300385
sgudza133b8e2019-05-10 14:32:08 +0300386 instance_config_host: { get_attr: [cfg01_node, instance_address] }
387
388 stacklight_mtr_cluster:
389 type: MCP::MultipleInstance
390 depends_on: [stacklight_log_cluster]
391 properties:
392 env_name: { get_param: env_name }
393 mcp_version: { get_param: mcp_version }
394 instance_domain: {get_param: instance_domain}
395 instance01_name: mtr01
396 instance02_name: mtr02
397 instance03_name: mtr03
398 instance_flavor: {get_param: mtr_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300399 availability_zone: { get_param: vm_availability_zone }
sgudza133b8e2019-05-10 14:32:08 +0300400 underlay_userdata: { get_file: ./underlay-userdata.yaml }
401 instance01_control_net_static_ip:
402 list_join:
403 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300404 - [ { get_attr: [subnets, control_net_prefix] }, '86' ]
sgudza133b8e2019-05-10 14:32:08 +0300405 instance02_control_net_static_ip:
406 list_join:
407 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300408 - [ { get_attr: [subnets, control_net_prefix] }, '87' ]
sgudza133b8e2019-05-10 14:32:08 +0300409 instance03_control_net_static_ip:
410 list_join:
411 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300412 - [ { get_attr: [subnets, control_net_prefix] }, '88' ]
sgudze6bff762019-05-23 18:15:49 +0300413 instance01_tenant_net_static_ip:
414 list_join:
415 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300416 - [ { get_attr: [subnets, tenant_net_prefix] }, '86' ]
sgudze6bff762019-05-23 18:15:49 +0300417 instance02_tenant_net_static_ip:
418 list_join:
419 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300420 - [ { get_attr: [subnets, tenant_net_prefix] }, '87' ]
sgudze6bff762019-05-23 18:15:49 +0300421 instance03_tenant_net_static_ip:
422 list_join:
423 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300424 - [ { get_attr: [subnets, tenant_net_prefix] }, '88' ]
sgudze6bff762019-05-23 18:15:49 +0300425 instance01_external_net_static_ip:
426 list_join:
427 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300428 - [ { get_attr: [subnets, external_net_prefix] }, '86' ]
sgudze6bff762019-05-23 18:15:49 +0300429 instance02_external_net_static_ip:
430 list_join:
431 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300432 - [ { get_attr: [subnets, external_net_prefix] }, '87' ]
sgudze6bff762019-05-23 18:15:49 +0300433 instance03_external_net_static_ip:
434 list_join:
435 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300436 - [ { get_attr: [subnets, external_net_prefix] }, '88' ]
sgudze6bff762019-05-23 18:15:49 +0300437
sgudza133b8e2019-05-10 14:32:08 +0300438 instance_config_host: { get_attr: [cfg01_node, instance_address] }
439
440 prx01_virtual:
441 type: MCP::SingleInstance
442 depends_on: [stacklight_mtr_cluster]
443 properties:
444 env_name: { get_param: env_name }
445 mcp_version: { get_param: mcp_version }
446 instance_domain: {get_param: instance_domain}
447 instance_name: prx01
448 instance_flavor: {get_param: cid_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300449 availability_zone: { get_param: vm_availability_zone }
sgudza133b8e2019-05-10 14:32:08 +0300450 underlay_userdata: { get_file: ./underlay-userdata.yaml }
451 control_net_static_ip:
452 list_join:
453 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300454 - [ { get_attr: [subnets, control_net_prefix] }, '221' ]
sgudze6bff762019-05-23 18:15:49 +0300455 tenant_net_static_ip:
456 list_join:
457 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300458 - [ { get_attr: [subnets, tenant_net_prefix] }, '221' ]
sgudze6bff762019-05-23 18:15:49 +0300459 external_net_static_ip:
460 list_join:
461 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300462 - [ { get_attr: [subnets, external_net_prefix] }, '221' ]
sgudze6bff762019-05-23 18:15:49 +0300463
sgudza133b8e2019-05-10 14:32:08 +0300464 instance_config_host: { get_attr: [cfg01_node, instance_address] }
465
466 prx02_virtual:
467 type: MCP::SingleInstance
468 depends_on: [prx01_virtual]
469 properties:
470 env_name: { get_param: env_name }
471 mcp_version: { get_param: mcp_version }
472 instance_domain: {get_param: instance_domain}
473 instance_name: prx02
474 instance_flavor: {get_param: cid_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300475 availability_zone: { get_param: vm_availability_zone }
sgudza133b8e2019-05-10 14:32:08 +0300476 underlay_userdata: { get_file: ./underlay-userdata.yaml }
477 control_net_static_ip:
478 list_join:
479 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300480 - [ { get_attr: [subnets, control_net_prefix] }, '222' ]
sgudze6bff762019-05-23 18:15:49 +0300481 tenant_net_static_ip:
482 list_join:
483 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300484 - [ { get_attr: [subnets, tenant_net_prefix] }, '222' ]
sgudze6bff762019-05-23 18:15:49 +0300485 external_net_static_ip:
486 list_join:
487 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300488 - [ { get_attr: [subnets, external_net_prefix] }, '222' ]
sgudze6bff762019-05-23 18:15:49 +0300489
sgudza133b8e2019-05-10 14:32:08 +0300490 instance_config_host: { get_attr: [cfg01_node, instance_address] }
491
492 cmp001_virtual:
493 type: MCP::Compute
494 depends_on: [prx02_virtual]
495 properties:
496 env_name: { get_param: env_name }
497 mcp_version: { get_param: mcp_version }
498 instance_domain: {get_param: instance_domain}
499 instance_name: cmp001
500 instance_flavor: {get_param: cmp_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300501 availability_zone: { get_param: vm_availability_zone }
sgudza133b8e2019-05-10 14:32:08 +0300502 underlay_userdata: { get_file: ./underlay-userdata.yaml }
503 control_net_static_ip:
504 list_join:
505 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300506 - [ { get_attr: [subnets, control_net_prefix] }, '101' ]
sgudze6bff762019-05-23 18:15:49 +0300507 tenant_net_static_ip:
508 list_join:
509 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300510 - [ { get_attr: [subnets, tenant_net_prefix] }, '101' ]
sgudze6bff762019-05-23 18:15:49 +0300511 external_net_static_ip:
512 list_join:
513 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300514 - [ { get_attr: [subnets, external_net_prefix] }, '101' ]
sgudze6bff762019-05-23 18:15:49 +0300515
sgudza133b8e2019-05-10 14:32:08 +0300516 instance_config_host: { get_attr: [cfg01_node, instance_address] }
517
518 cmp002_virtual:
519 type: MCP::Compute
520 depends_on: [cmp001_virtual]
521 properties:
522 env_name: { get_param: env_name }
523 mcp_version: { get_param: mcp_version }
524 instance_domain: {get_param: instance_domain}
525 instance_name: cmp002
526 instance_flavor: {get_param: cmp_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300527 availability_zone: { get_param: vm_availability_zone }
sgudza133b8e2019-05-10 14:32:08 +0300528 underlay_userdata: { get_file: ./underlay-userdata.yaml }
529 control_net_static_ip:
530 list_join:
531 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300532 - [ { get_attr: [subnets, control_net_prefix] }, '102' ]
sgudze6bff762019-05-23 18:15:49 +0300533 tenant_net_static_ip:
534 list_join:
535 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300536 - [ { get_attr: [subnets, tenant_net_prefix] }, '102' ]
sgudze6bff762019-05-23 18:15:49 +0300537 external_net_static_ip:
538 list_join:
539 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300540 - [ { get_attr: [subnets, external_net_prefix] }, '102' ]
sgudze6bff762019-05-23 18:15:49 +0300541
sgudza133b8e2019-05-10 14:32:08 +0300542 instance_config_host: { get_attr: [cfg01_node, instance_address] }
543
544 cmp003_virtual:
545 type: MCP::Compute
546 depends_on: [cmp002_virtual]
547 properties:
548 env_name: { get_param: env_name }
549 mcp_version: { get_param: mcp_version }
550 instance_domain: {get_param: instance_domain}
551 instance_name: cmp003
552 instance_flavor: {get_param: cmp_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300553 availability_zone: { get_param: vm_availability_zone }
sgudza133b8e2019-05-10 14:32:08 +0300554 underlay_userdata: { get_file: ./underlay-userdata.yaml }
555 control_net_static_ip:
556 list_join:
557 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300558 - [ { get_attr: [subnets, control_net_prefix] }, '103' ]
sgudze6bff762019-05-23 18:15:49 +0300559 tenant_net_static_ip:
560 list_join:
561 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300562 - [ { get_attr: [subnets, tenant_net_prefix] }, '103' ]
sgudze6bff762019-05-23 18:15:49 +0300563 external_net_static_ip:
564 list_join:
565 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300566 - [ { get_attr: [subnets, external_net_prefix] }, '103' ]
sgudze6bff762019-05-23 18:15:49 +0300567
sgudza133b8e2019-05-10 14:32:08 +0300568 instance_config_host: { get_attr: [cfg01_node, instance_address] }
569
570 cmp004_virtual:
571 type: MCP::Compute
572 depends_on: [cmp003_virtual]
573 properties:
574 env_name: { get_param: env_name }
575 mcp_version: { get_param: mcp_version }
576 instance_domain: {get_param: instance_domain}
577 instance_name: cmp004
578 instance_flavor: {get_param: cmp_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300579 availability_zone: { get_param: vm_availability_zone }
sgudza133b8e2019-05-10 14:32:08 +0300580 underlay_userdata: { get_file: ./underlay-userdata.yaml }
581 control_net_static_ip:
582 list_join:
583 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300584 - [ { get_attr: [subnets, control_net_prefix] }, '104' ]
sgudze6bff762019-05-23 18:15:49 +0300585 tenant_net_static_ip:
586 list_join:
587 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300588 - [ { get_attr: [subnets, tenant_net_prefix] }, '104' ]
sgudze6bff762019-05-23 18:15:49 +0300589 external_net_static_ip:
590 list_join:
591 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300592 - [ { get_attr: [subnets, external_net_prefix] }, '104' ]
sgudze6bff762019-05-23 18:15:49 +0300593
sgudza133b8e2019-05-10 14:32:08 +0300594 instance_config_host: { get_attr: [cfg01_node, instance_address] }
595
596 foundation_node:
597 type: MCP::FoundationNode
598 depends_on: [networks]
599 properties:
600 env_name: { get_param: env_name }
601 mcp_version: { get_param: mcp_version }
602 instance_domain: {get_param: instance_domain}
603 instance_name: foundation
Dennis Dmitrievcba86122019-05-24 13:41:46 +0300604 instance_image: { get_param: foundation_image }
sgudza133b8e2019-05-10 14:32:08 +0300605 instance_flavor: {get_param: foundation_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300606 availability_zone: { get_param: bm_availability_zone }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300607 management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] }
608 control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] }
609 tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] }
610 external_net: { list_join: ['-', [ 'external_net', { get_param: env_name } ]] }
sgudzc9f50d12019-05-31 14:25:34 +0300611 management_subnet_gateway_ip: { get_param: management_subnet_gateway_ip }
sgudza133b8e2019-05-10 14:32:08 +0300612 underlay_userdata: { get_file: ./underlay--user-data-foundation.yaml }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300613 management_net_static_ip:
614 list_join:
615 - '.'
616 - [ { get_attr: [subnets, management_net_prefix] }, '5' ]
sgudza133b8e2019-05-10 14:32:08 +0300617 control_net_static_ip:
618 list_join:
619 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300620 - [ { get_attr: [subnets, control_net_prefix] }, '5' ]
sgudze6bff762019-05-23 18:15:49 +0300621 tenant_net_static_ip:
622 list_join:
623 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300624 - [ { get_attr: [subnets, tenant_net_prefix] }, '5' ]
sgudze6bff762019-05-23 18:15:49 +0300625 external_net_static_ip:
626 list_join:
627 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300628 - [ { get_attr: [subnets, external_net_prefix] }, '5' ]
sgudze6bff762019-05-23 18:15:49 +0300629
sgudza133b8e2019-05-10 14:32:08 +0300630 instance_config_host: { get_attr: [cfg01_node, instance_address] }
631
632outputs:
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300633 foundation_public_ip:
sgudza133b8e2019-05-10 14:32:08 +0300634 description: foundation node IP address (floating) from external network
635 value:
636 get_attr:
637 - foundation_node
638 - instance_floating_address
639...