blob: fa01312fb54eb27ac48c42716b2eda0481827750 [file] [log] [blame]
sgudze8442722019-05-08 10:38:04 +03001---
2
3heat_template_version: queens
4
5description: MCP environment for heat-cicd-k8s-contrail41-sl
6
7parameters:
8 instance_domain:
9 type: string
10 default: heat-cicd-k8s-contrail41-sl.local
11 mcp_version:
12 type: string
13 env_name:
14 type: string
15 control_subnet_cidr:
16 type: string
17 management_subnet_cidr:
18 type: string
19 management_subnet_pool_start:
20 type: string
21 management_subnet_pool_end:
22 type: string
23 management_subnet_cfg01_ip:
24 type: string
25 management_subnet_gateway_ip:
26 type: string
27
28 key_pair:
29 type: string
30
31 ctl_flavor:
32 type: string
33 cfg_flavor:
34 type: string
35 cid_flavor:
36 type: string
37 kvm_fake_flavor:
38 type: string
39 mon_flavor:
40 type: string
41 log_flavor:
42 type: string
43 mtr_flavor:
44 type: string
45 cmp_flavor:
46 type: string
47 cmn_flavor:
48 type: string
49 rgw_flavor:
50 type: string
51 osd_flavor:
52 type: string
53 foundation_flavor:
54 type: string
55
56 net_public:
57 type: string
58
Dennis Dmitrievcba86122019-05-24 13:41:46 +030059 foundation_image:
60 type: string
61
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +030062 bm_availability_zone:
63 type: string
64 vm_availability_zone:
65 type: string
66
sgudze8442722019-05-08 10:38:04 +030067resources:
68 networks:
69 type: MCP::Networks
70 properties:
71 stack_name: { get_param: "OS::stack_name" }
72 env_name: { get_param: env_name }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +030073 subnets:
74 depends_on: [networks]
75 type: MCP::Subnets
76 properties:
77 stack_name: { get_param: "OS::stack_name" }
78 env_name: { get_param: env_name }
79 management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] }
80 control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] }
81 tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] }
82 external_net: { list_join: ['-', [ 'external_net', { get_param: env_name } ]] }
sgudze8442722019-05-08 10:38:04 +030083
84 #flavors:
85 # type: MCP::Flavors
86
87 cfg01_node:
88 type: MCP::MasterNode
89 depends_on: [networks]
90 properties:
91 env_name: { get_param: env_name }
92 mcp_version: { get_param: mcp_version }
93 cfg01_flavor: { get_param: cfg_flavor }
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +030094 availability_zone: { get_param: bm_availability_zone }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +030095 management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] }
96 control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] }
97 tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] }
98 external_net: { list_join: ['-', [ 'external_net', { get_param: env_name } ]] }
sgudze6bff762019-05-23 18:15:49 +030099 tenant_net_static_ip:
100 list_join:
101 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300102 - [ { get_attr: [subnets, tenant_net_prefix] }, '15' ]
sgudze6bff762019-05-23 18:15:49 +0300103 external_net_static_ip:
104 list_join:
105 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300106 - [ { get_attr: [subnets, external_net_prefix] }, '15' ]
sgudze8442722019-05-08 10:38:04 +0300107 instance_name: cfg01
108 instance_domain: {get_param: instance_domain}
sgudze8442722019-05-08 10:38:04 +0300109
110 control_cluster:
111 type: MCP::MultipleInstance
112 depends_on: [cfg01_node]
113 properties:
114 env_name: { get_param: env_name }
115 mcp_version: { get_param: mcp_version }
116 instance_domain: {get_param: instance_domain}
117 instance01_name: ctl01
118 instance02_name: ctl02
119 instance03_name: ctl03
sgudz917e8d92019-05-21 16:20:02 +0300120 instance01_role: k8s_controller
sgudze8442722019-05-08 10:38:04 +0300121 instance_flavor: {get_param: ctl_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300122 availability_zone: { get_param: vm_availability_zone }
sgudze8442722019-05-08 10:38:04 +0300123 underlay_userdata: { get_file: ./underlay-userdata.yaml }
124 instance01_control_net_static_ip:
125 list_join:
126 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300127 - [ { get_attr: [subnets, control_net_prefix] }, '11' ]
sgudze8442722019-05-08 10:38:04 +0300128 instance02_control_net_static_ip:
129 list_join:
130 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300131 - [ { get_attr: [subnets, control_net_prefix] }, '12' ]
sgudze8442722019-05-08 10:38:04 +0300132 instance03_control_net_static_ip:
133 list_join:
134 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300135 - [ { get_attr: [subnets, control_net_prefix] }, '13' ]
sgudze6bff762019-05-23 18:15:49 +0300136 instance01_tenant_net_static_ip:
137 list_join:
138 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300139 - [ { get_attr: [subnets, tenant_net_prefix] }, '11' ]
sgudze6bff762019-05-23 18:15:49 +0300140 instance02_tenant_net_static_ip:
141 list_join:
142 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300143 - [ { get_attr: [subnets, tenant_net_prefix] }, '12' ]
sgudze6bff762019-05-23 18:15:49 +0300144 instance03_tenant_net_static_ip:
145 list_join:
146 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300147 - [ { get_attr: [subnets, tenant_net_prefix] }, '13' ]
sgudze6bff762019-05-23 18:15:49 +0300148 instance01_external_net_static_ip:
149 list_join:
150 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300151 - [ { get_attr: [subnets, external_net_prefix] }, '11' ]
sgudze6bff762019-05-23 18:15:49 +0300152 instance02_external_net_static_ip:
153 list_join:
154 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300155 - [ { get_attr: [subnets, external_net_prefix] }, '12' ]
sgudze6bff762019-05-23 18:15:49 +0300156 instance03_external_net_static_ip:
157 list_join:
158 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300159 - [ { get_attr: [subnets, external_net_prefix] }, '13' ]
sgudze8442722019-05-08 10:38:04 +0300160
161 instance_config_host: { get_attr: [cfg01_node, instance_address] }
162
163 fake_kvm_cluster:
164 type: MCP::MultipleInstance
165 depends_on: [cfg01_node]
166 properties:
167 env_name: { get_param: env_name }
168 mcp_version: { get_param: mcp_version }
169 instance_domain: {get_param: instance_domain}
170 instance01_name: kvm01
171 instance02_name: kvm02
172 instance03_name: kvm03
173 instance_flavor: {get_param: kvm_fake_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300174 availability_zone: { get_param: vm_availability_zone }
sgudze8442722019-05-08 10:38:04 +0300175 underlay_userdata: { get_file: ./underlay-userdata.yaml }
176 instance01_control_net_static_ip:
177 list_join:
178 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300179 - [ { get_attr: [subnets, control_net_prefix] }, '241' ]
sgudze8442722019-05-08 10:38:04 +0300180 instance02_control_net_static_ip:
181 list_join:
182 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300183 - [ { get_attr: [subnets, control_net_prefix] }, '242' ]
sgudze8442722019-05-08 10:38:04 +0300184 instance03_control_net_static_ip:
185 list_join:
186 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300187 - [ { get_attr: [subnets, control_net_prefix] }, '243' ]
sgudze6bff762019-05-23 18:15:49 +0300188 instance01_tenant_net_static_ip:
189 list_join:
190 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300191 - [ { get_attr: [subnets, tenant_net_prefix] }, '241' ]
sgudze6bff762019-05-23 18:15:49 +0300192 instance02_tenant_net_static_ip:
193 list_join:
194 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300195 - [ { get_attr: [subnets, tenant_net_prefix] }, '242' ]
sgudze6bff762019-05-23 18:15:49 +0300196 instance03_tenant_net_static_ip:
197 list_join:
198 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300199 - [ { get_attr: [subnets, tenant_net_prefix] }, '243' ]
sgudze6bff762019-05-23 18:15:49 +0300200 instance01_external_net_static_ip:
201 list_join:
202 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300203 - [ { get_attr: [subnets, external_net_prefix] }, '241' ]
sgudze6bff762019-05-23 18:15:49 +0300204 instance02_external_net_static_ip:
205 list_join:
206 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300207 - [ { get_attr: [subnets, external_net_prefix] }, '242' ]
sgudze6bff762019-05-23 18:15:49 +0300208 instance03_external_net_static_ip:
209 list_join:
210 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300211 - [ { get_attr: [subnets, external_net_prefix] }, '243' ]
sgudze8442722019-05-08 10:38:04 +0300212
213 instance_config_host: { get_attr: [cfg01_node, instance_address] }
214
215 cicd_cluster:
216 type: MCP::MultipleInstance
217 depends_on: [cfg01_node]
218 properties:
219 env_name: { get_param: env_name }
220 mcp_version: { get_param: mcp_version }
221 instance_domain: {get_param: instance_domain}
222 instance01_name: cid01
223 instance02_name: cid02
224 instance03_name: cid03
225 instance_flavor: {get_param: cid_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300226 availability_zone: { get_param: vm_availability_zone }
sgudze8442722019-05-08 10:38:04 +0300227 underlay_userdata: { get_file: ./underlay-userdata.yaml }
228 instance01_control_net_static_ip:
229 list_join:
230 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300231 - [ { get_attr: [subnets, control_net_prefix] }, '91' ]
sgudze8442722019-05-08 10:38:04 +0300232 instance02_control_net_static_ip:
233 list_join:
234 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300235 - [ { get_attr: [subnets, control_net_prefix] }, '92' ]
sgudze8442722019-05-08 10:38:04 +0300236 instance03_control_net_static_ip:
237 list_join:
238 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300239 - [ { get_attr: [subnets, control_net_prefix] }, '93' ]
sgudze6bff762019-05-23 18:15:49 +0300240 instance01_tenant_net_static_ip:
241 list_join:
242 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300243 - [ { get_attr: [subnets, tenant_net_prefix] }, '91' ]
sgudze6bff762019-05-23 18:15:49 +0300244 instance02_tenant_net_static_ip:
245 list_join:
246 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300247 - [ { get_attr: [subnets, tenant_net_prefix] }, '92' ]
sgudze6bff762019-05-23 18:15:49 +0300248 instance03_tenant_net_static_ip:
249 list_join:
250 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300251 - [ { get_attr: [subnets, tenant_net_prefix] }, '93' ]
sgudze6bff762019-05-23 18:15:49 +0300252 instance01_external_net_static_ip:
253 list_join:
254 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300255 - [ { get_attr: [subnets, external_net_prefix] }, '91' ]
sgudze6bff762019-05-23 18:15:49 +0300256 instance02_external_net_static_ip:
257 list_join:
258 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300259 - [ { get_attr: [subnets, external_net_prefix] }, '92' ]
sgudze6bff762019-05-23 18:15:49 +0300260 instance03_external_net_static_ip:
261 list_join:
262 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300263 - [ { get_attr: [subnets, external_net_prefix] }, '93' ]
sgudze8442722019-05-08 10:38:04 +0300264
265 instance_config_host: { get_attr: [cfg01_node, instance_address] }
266
267 stacklight_monitor_cluster:
268 type: MCP::MultipleInstance
269 depends_on: [openstack_message_queue_cluster]
270 properties:
271 env_name: { get_param: env_name }
272 mcp_version: { get_param: mcp_version }
273 instance_domain: {get_param: instance_domain}
274 instance01_name: mon01
275 instance02_name: mon02
276 instance03_name: mon03
277 instance_flavor: {get_param: mon_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300278 availability_zone: { get_param: vm_availability_zone }
sgudze8442722019-05-08 10:38:04 +0300279 underlay_userdata: { get_file: ./underlay-userdata.yaml }
280 instance01_control_net_static_ip:
281 list_join:
282 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300283 - [ { get_attr: [subnets, control_net_prefix] }, '71' ]
sgudze8442722019-05-08 10:38:04 +0300284 instance02_control_net_static_ip:
285 list_join:
286 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300287 - [ { get_attr: [subnets, control_net_prefix] }, '72' ]
sgudze8442722019-05-08 10:38:04 +0300288 instance03_control_net_static_ip:
289 list_join:
290 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300291 - [ { get_attr: [subnets, control_net_prefix] }, '73' ]
sgudze6bff762019-05-23 18:15:49 +0300292 instance01_tenant_net_static_ip:
293 list_join:
294 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300295 - [ { get_attr: [subnets, tenant_net_prefix] }, '71' ]
sgudze6bff762019-05-23 18:15:49 +0300296 instance02_tenant_net_static_ip:
297 list_join:
298 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300299 - [ { get_attr: [subnets, tenant_net_prefix] }, '72' ]
sgudze6bff762019-05-23 18:15:49 +0300300 instance03_tenant_net_static_ip:
301 list_join:
302 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300303 - [ { get_attr: [subnets, tenant_net_prefix] }, '73' ]
sgudze6bff762019-05-23 18:15:49 +0300304 instance01_external_net_static_ip:
305 list_join:
306 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300307 - [ { get_attr: [subnets, external_net_prefix] }, '71' ]
sgudze6bff762019-05-23 18:15:49 +0300308 instance02_external_net_static_ip:
309 list_join:
310 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300311 - [ { get_attr: [subnets, external_net_prefix] }, '72' ]
sgudze6bff762019-05-23 18:15:49 +0300312 instance03_external_net_static_ip:
313 list_join:
314 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300315 - [ { get_attr: [subnets, external_net_prefix] }, '73' ]
sgudze6bff762019-05-23 18:15:49 +0300316
sgudze8442722019-05-08 10:38:04 +0300317 instance_config_host: { get_attr: [cfg01_node, instance_address] }
318
319 stacklight_log_cluster:
320 type: MCP::MultipleInstance
321 depends_on: [stacklight_monitor_cluster]
322 properties:
323 env_name: { get_param: env_name }
324 mcp_version: { get_param: mcp_version }
325 instance_domain: {get_param: instance_domain}
326 instance01_name: log01
327 instance02_name: log02
328 instance03_name: log03
329 instance_flavor: {get_param: log_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300330 availability_zone: { get_param: vm_availability_zone }
sgudze8442722019-05-08 10:38:04 +0300331 underlay_userdata: { get_file: ./underlay-userdata.yaml }
332 instance01_control_net_static_ip:
333 list_join:
334 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300335 - [ { get_attr: [subnets, control_net_prefix] }, '61' ]
sgudze8442722019-05-08 10:38:04 +0300336 instance02_control_net_static_ip:
337 list_join:
338 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300339 - [ { get_attr: [subnets, control_net_prefix] }, '62' ]
sgudze8442722019-05-08 10:38:04 +0300340 instance03_control_net_static_ip:
341 list_join:
342 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300343 - [ { get_attr: [subnets, control_net_prefix] }, '63' ]
sgudze6bff762019-05-23 18:15:49 +0300344 instance01_tenant_net_static_ip:
345 list_join:
346 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300347 - [ { get_attr: [subnets, tenant_net_prefix] }, '61' ]
sgudze6bff762019-05-23 18:15:49 +0300348 instance02_tenant_net_static_ip:
349 list_join:
350 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300351 - [ { get_attr: [subnets, tenant_net_prefix] }, '62' ]
sgudze6bff762019-05-23 18:15:49 +0300352 instance03_tenant_net_static_ip:
353 list_join:
354 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300355 - [ { get_attr: [subnets, tenant_net_prefix] }, '63' ]
sgudze6bff762019-05-23 18:15:49 +0300356 instance01_external_net_static_ip:
357 list_join:
358 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300359 - [ { get_attr: [subnets, external_net_prefix] }, '61' ]
sgudze6bff762019-05-23 18:15:49 +0300360 instance02_external_net_static_ip:
361 list_join:
362 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300363 - [ { get_attr: [subnets, external_net_prefix] }, '62' ]
sgudze6bff762019-05-23 18:15:49 +0300364 instance03_external_net_static_ip:
365 list_join:
366 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300367 - [ { get_attr: [subnets, external_net_prefix] }, '63' ]
sgudze6bff762019-05-23 18:15:49 +0300368
sgudze8442722019-05-08 10:38:04 +0300369 instance_config_host: { get_attr: [cfg01_node, instance_address] }
370
371 stacklight_mtr_cluster:
372 type: MCP::MultipleInstance
373 depends_on: [stacklight_log_cluster]
374 properties:
375 env_name: { get_param: env_name }
376 mcp_version: { get_param: mcp_version }
377 instance_domain: {get_param: instance_domain}
378 instance01_name: mtr01
379 instance02_name: mtr02
380 instance03_name: mtr03
381 instance_flavor: {get_param: mtr_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300382 availability_zone: { get_param: vm_availability_zone }
sgudze8442722019-05-08 10:38:04 +0300383 underlay_userdata: { get_file: ./underlay-userdata.yaml }
384 instance01_control_net_static_ip:
385 list_join:
386 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300387 - [ { get_attr: [subnets, control_net_prefix] }, '86' ]
sgudze8442722019-05-08 10:38:04 +0300388 instance02_control_net_static_ip:
389 list_join:
390 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300391 - [ { get_attr: [subnets, control_net_prefix] }, '87' ]
sgudze8442722019-05-08 10:38:04 +0300392 instance03_control_net_static_ip:
393 list_join:
394 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300395 - [ { get_attr: [subnets, control_net_prefix] }, '88' ]
sgudze6bff762019-05-23 18:15:49 +0300396 instance01_tenant_net_static_ip:
397 list_join:
398 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300399 - [ { get_attr: [subnets, tenant_net_prefix] }, '86' ]
sgudze6bff762019-05-23 18:15:49 +0300400 instance02_tenant_net_static_ip:
401 list_join:
402 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300403 - [ { get_attr: [subnets, tenant_net_prefix] }, '87' ]
sgudze6bff762019-05-23 18:15:49 +0300404 instance03_tenant_net_static_ip:
405 list_join:
406 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300407 - [ { get_attr: [subnets, tenant_net_prefix] }, '88' ]
sgudze6bff762019-05-23 18:15:49 +0300408 instance01_external_net_static_ip:
409 list_join:
410 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300411 - [ { get_attr: [subnets, external_net_prefix] }, '86' ]
sgudze6bff762019-05-23 18:15:49 +0300412 instance02_external_net_static_ip:
413 list_join:
414 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300415 - [ { get_attr: [subnets, external_net_prefix] }, '87' ]
sgudze6bff762019-05-23 18:15:49 +0300416 instance03_external_net_static_ip:
417 list_join:
418 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300419 - [ { get_attr: [subnets, external_net_prefix] }, '88' ]
sgudze6bff762019-05-23 18:15:49 +0300420
sgudze8442722019-05-08 10:38:04 +0300421 instance_config_host: { get_attr: [cfg01_node, instance_address] }
422
423 ceph_cmn_cluster:
424 type: MCP::MultipleInstance
425 depends_on: [cfg01_node]
426 properties:
427 env_name: { get_param: env_name }
428 mcp_version: { get_param: mcp_version }
429 instance_domain: {get_param: instance_domain}
430 instance01_name: cmn01
431 instance02_name: cmn02
432 instance03_name: cmn03
433 instance_flavor: {get_param: cmn_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300434 availability_zone: { get_param: vm_availability_zone }
sgudze8442722019-05-08 10:38:04 +0300435 underlay_userdata: { get_file: ./underlay-userdata.yaml }
436 instance01_control_net_static_ip:
437 list_join:
438 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300439 - [ { get_attr: [subnets, control_net_prefix] }, '66' ]
sgudze8442722019-05-08 10:38:04 +0300440 instance02_control_net_static_ip:
441 list_join:
442 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300443 - [ { get_attr: [subnets, control_net_prefix] }, '67' ]
sgudze8442722019-05-08 10:38:04 +0300444 instance03_control_net_static_ip:
445 list_join:
446 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300447 - [ { get_attr: [subnets, control_net_prefix] }, '68' ]
sgudze6bff762019-05-23 18:15:49 +0300448 instance01_tenant_net_static_ip:
449 list_join:
450 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300451 - [ { get_attr: [subnets, tenant_net_prefix] }, '66' ]
sgudze6bff762019-05-23 18:15:49 +0300452 instance02_tenant_net_static_ip:
453 list_join:
454 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300455 - [ { get_attr: [subnets, tenant_net_prefix] }, '67' ]
sgudze6bff762019-05-23 18:15:49 +0300456 instance03_tenant_net_static_ip:
457 list_join:
458 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300459 - [ { get_attr: [subnets, tenant_net_prefix] }, '68' ]
sgudze6bff762019-05-23 18:15:49 +0300460 instance01_external_net_static_ip:
461 list_join:
462 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300463 - [ { get_attr: [subnets, external_net_prefix] }, '66' ]
sgudze6bff762019-05-23 18:15:49 +0300464 instance02_external_net_static_ip:
465 list_join:
466 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300467 - [ { get_attr: [subnets, external_net_prefix] }, '67' ]
sgudze6bff762019-05-23 18:15:49 +0300468 instance03_external_net_static_ip:
469 list_join:
470 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300471 - [ { get_attr: [subnets, external_net_prefix] }, '68' ]
sgudze6bff762019-05-23 18:15:49 +0300472
sgudze8442722019-05-08 10:38:04 +0300473 instance_config_host: { get_attr: [cfg01_node, instance_address] }
474
475 ceph_rgw_cluster:
476 type: MCP::MultipleInstance
477 depends_on: [cfg01_node]
478 properties:
479 env_name: { get_param: env_name }
480 mcp_version: { get_param: mcp_version }
481 instance_domain: {get_param: instance_domain}
482 instance01_name: rgw01
483 instance02_name: rgw02
484 instance03_name: rgw03
485 instance_flavor: {get_param: rgw_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300486 availability_zone: { get_param: vm_availability_zone }
sgudze8442722019-05-08 10:38:04 +0300487 underlay_userdata: { get_file: ./underlay-userdata.yaml }
488 instance01_control_net_static_ip:
489 list_join:
490 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300491 - [ { get_attr: [subnets, control_net_prefix] }, '76' ]
sgudze8442722019-05-08 10:38:04 +0300492 instance02_control_net_static_ip:
493 list_join:
494 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300495 - [ { get_attr: [subnets, control_net_prefix] }, '77' ]
sgudze8442722019-05-08 10:38:04 +0300496 instance03_control_net_static_ip:
497 list_join:
498 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300499 - [ { get_attr: [subnets, control_net_prefix] }, '78' ]
sgudze6bff762019-05-23 18:15:49 +0300500 instance01_tenant_net_static_ip:
501 list_join:
502 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300503 - [ { get_attr: [subnets, tenant_net_prefix] }, '76' ]
sgudze6bff762019-05-23 18:15:49 +0300504 instance02_tenant_net_static_ip:
505 list_join:
506 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300507 - [ { get_attr: [subnets, tenant_net_prefix] }, '77' ]
sgudze6bff762019-05-23 18:15:49 +0300508 instance03_tenant_net_static_ip:
509 list_join:
510 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300511 - [ { get_attr: [subnets, tenant_net_prefix] }, '78' ]
sgudze6bff762019-05-23 18:15:49 +0300512 instance01_external_net_static_ip:
513 list_join:
514 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300515 - [ { get_attr: [subnets, external_net_prefix] }, '76' ]
sgudze6bff762019-05-23 18:15:49 +0300516 instance02_external_net_static_ip:
517 list_join:
518 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300519 - [ { get_attr: [subnets, external_net_prefix] }, '77' ]
sgudze6bff762019-05-23 18:15:49 +0300520 instance03_external_net_static_ip:
521 list_join:
522 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300523 - [ { get_attr: [subnets, external_net_prefix] }, '78' ]
sgudze6bff762019-05-23 18:15:49 +0300524
sgudze8442722019-05-08 10:38:04 +0300525 instance_config_host: { get_attr: [cfg01_node, instance_address] }
526
527 ceph_osd_cluster:
528 type: MCP::MultipleInstance
529 depends_on: [cfg01_node]
530 properties:
531 env_name: { get_param: env_name }
532 mcp_version: { get_param: mcp_version }
533 instance_domain: {get_param: instance_domain}
534 instance01_name: osd001
535 instance02_name: osd002
536 instance03_name: osd003
537 instance_flavor: {get_param: osd_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300538 availability_zone: { get_param: vm_availability_zone }
sgudze8442722019-05-08 10:38:04 +0300539 underlay_userdata: { get_file: ./underlay-userdata.yaml }
540 instance01_control_net_static_ip:
541 list_join:
542 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300543 - [ { get_attr: [subnets, control_net_prefix] }, '201' ]
sgudze8442722019-05-08 10:38:04 +0300544 instance02_control_net_static_ip:
545 list_join:
546 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300547 - [ { get_attr: [subnets, control_net_prefix] }, '202' ]
sgudze8442722019-05-08 10:38:04 +0300548 instance03_control_net_static_ip:
549 list_join:
550 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300551 - [ { get_attr: [subnets, control_net_prefix] }, '203' ]
sgudze6bff762019-05-23 18:15:49 +0300552 instance01_tenant_net_static_ip:
553 list_join:
554 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300555 - [ { get_attr: [subnets, tenant_net_prefix] }, '201' ]
sgudze6bff762019-05-23 18:15:49 +0300556 instance02_tenant_net_static_ip:
557 list_join:
558 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300559 - [ { get_attr: [subnets, tenant_net_prefix] }, '202' ]
sgudze6bff762019-05-23 18:15:49 +0300560 instance03_tenant_net_static_ip:
561 list_join:
562 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300563 - [ { get_attr: [subnets, tenant_net_prefix] }, '203' ]
sgudze6bff762019-05-23 18:15:49 +0300564 instance01_external_net_static_ip:
565 list_join:
566 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300567 - [ { get_attr: [subnets, external_net_prefix] }, '201' ]
sgudze6bff762019-05-23 18:15:49 +0300568 instance02_external_net_static_ip:
569 list_join:
570 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300571 - [ { get_attr: [subnets, external_net_prefix] }, '202' ]
sgudze6bff762019-05-23 18:15:49 +0300572 instance03_external_net_static_ip:
573 list_join:
574 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300575 - [ { get_attr: [subnets, external_net_prefix] }, '203' ]
sgudze6bff762019-05-23 18:15:49 +0300576
sgudze8442722019-05-08 10:38:04 +0300577 instance_config_host: { get_attr: [cfg01_node, instance_address] }
578
579 prx01_virtual:
580 type: MCP::SingleInstance
581 depends_on: [control_cluster]
582 properties:
583 env_name: { get_param: env_name }
584 mcp_version: { get_param: mcp_version }
585 instance_domain: {get_param: instance_domain}
586 instance_name: prx01
587 instance_flavor: {get_param: cid_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300588 availability_zone: { get_param: vm_availability_zone }
sgudze8442722019-05-08 10:38:04 +0300589 underlay_userdata: { get_file: ./underlay-userdata.yaml }
590 control_net_static_ip:
591 list_join:
592 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300593 - [ { get_attr: [subnets, control_net_prefix] }, '221' ]
sgudze6bff762019-05-23 18:15:49 +0300594 tenant_net_static_ip:
595 list_join:
596 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300597 - [ { get_attr: [subnets, tenant_net_prefix] }, '221' ]
sgudze6bff762019-05-23 18:15:49 +0300598 external_net_static_ip:
599 list_join:
600 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300601 - [ { get_attr: [subnets, external_net_prefix] }, '221' ]
sgudze6bff762019-05-23 18:15:49 +0300602
sgudze8442722019-05-08 10:38:04 +0300603 instance_config_host: { get_attr: [cfg01_node, instance_address] }
604
605 prx02_virtual:
606 type: MCP::SingleInstance
607 depends_on: [control_cluster]
608 properties:
609 env_name: { get_param: env_name }
610 mcp_version: { get_param: mcp_version }
611 instance_domain: {get_param: instance_domain}
612 instance_name: prx02
613 instance_flavor: {get_param: cid_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300614 availability_zone: { get_param: vm_availability_zone }
sgudze8442722019-05-08 10:38:04 +0300615 underlay_userdata: { get_file: ./underlay-userdata.yaml }
616 control_net_static_ip:
617 list_join:
618 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300619 - [ { get_attr: [subnets, control_net_prefix] }, '222' ]
sgudze6bff762019-05-23 18:15:49 +0300620 tenant_net_static_ip:
621 list_join:
622 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300623 - [ { get_attr: [subnets, tenant_net_prefix] }, '222' ]
sgudze6bff762019-05-23 18:15:49 +0300624 external_net_static_ip:
625 list_join:
626 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300627 - [ { get_attr: [subnets, external_net_prefix] }, '222' ]
sgudze8442722019-05-08 10:38:04 +0300628 instance_config_host: { get_attr: [cfg01_node, instance_address] }
629
630 cmp001_virtual:
631 type: MCP::Compute
632 depends_on: [cfg01_node]
633 properties:
634 env_name: { get_param: env_name }
635 mcp_version: { get_param: mcp_version }
636 instance_domain: {get_param: instance_domain}
637 instance_name: cmp001
638 instance_flavor: {get_param: cmp_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300639 availability_zone: { get_param: vm_availability_zone }
sgudze8442722019-05-08 10:38:04 +0300640 underlay_userdata: { get_file: ./underlay-userdata.yaml }
641 control_net_static_ip:
642 list_join:
643 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300644 - [ { get_attr: [subnets, control_net_prefix] }, '101' ]
sgudze6bff762019-05-23 18:15:49 +0300645 tenant_net_static_ip:
646 list_join:
647 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300648 - [ { get_attr: [subnets, tenant_net_prefix] }, '101' ]
sgudze6bff762019-05-23 18:15:49 +0300649 external_net_static_ip:
650 list_join:
651 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300652 - [ { get_attr: [subnets, external_net_prefix] }, '101' ]
sgudze6bff762019-05-23 18:15:49 +0300653
sgudze8442722019-05-08 10:38:04 +0300654 instance_config_host: { get_attr: [cfg01_node, instance_address] }
655
656 cmp002_virtual:
657 type: MCP::Compute
658 depends_on: [cfg01_node]
659 properties:
660 env_name: { get_param: env_name }
661 mcp_version: { get_param: mcp_version }
662 instance_domain: {get_param: instance_domain}
663 instance_name: cmp002
664 instance_flavor: {get_param: cmp_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300665 availability_zone: { get_param: vm_availability_zone }
sgudze8442722019-05-08 10:38:04 +0300666 underlay_userdata: { get_file: ./underlay-userdata.yaml }
667 control_net_static_ip:
668 list_join:
669 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300670 - [ { get_attr: [subnets, control_net_prefix] }, '102' ]
sgudze6bff762019-05-23 18:15:49 +0300671 tenant_net_static_ip:
672 list_join:
673 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300674 - [ { get_attr: [subnets, tenant_net_prefix] }, '102' ]
sgudze6bff762019-05-23 18:15:49 +0300675 external_net_static_ip:
676 list_join:
677 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300678 - [ { get_attr: [subnets, external_net_prefix] }, '102' ]
sgudze6bff762019-05-23 18:15:49 +0300679
sgudze8442722019-05-08 10:38:04 +0300680 instance_config_host: { get_attr: [cfg01_node, instance_address] }
681
682 foundation_node:
683 type: MCP::FoundationNode
684 depends_on: [networks]
685 properties:
686 env_name: { get_param: env_name }
687 mcp_version: { get_param: mcp_version }
688 instance_domain: {get_param: instance_domain}
689 instance_name: foundation
Dennis Dmitrievcba86122019-05-24 13:41:46 +0300690 instance_image: { get_param: foundation_image }
sgudze8442722019-05-08 10:38:04 +0300691 instance_flavor: {get_param: foundation_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300692 availability_zone: { get_param: bm_availability_zone }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300693 management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] }
694 control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] }
695 tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] }
696 external_net: { list_join: ['-', [ 'external_net', { get_param: env_name } ]] }
sgudze8442722019-05-08 10:38:04 +0300697 underlay_userdata: { get_file: ./underlay--user-data-foundation.yaml }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300698 management_net_static_ip:
699 list_join:
700 - '.'
701 - [ { get_attr: [subnets, management_net_prefix] }, '5' ]
sgudze8442722019-05-08 10:38:04 +0300702 control_net_static_ip:
703 list_join:
704 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300705 - [ { get_attr: [subnets, control_net_prefix] }, '5' ]
sgudze6bff762019-05-23 18:15:49 +0300706 tenant_net_static_ip:
707 list_join:
708 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300709 - [ { get_attr: [subnets, tenant_net_prefix] }, '5' ]
sgudze6bff762019-05-23 18:15:49 +0300710 external_net_static_ip:
711 list_join:
712 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300713 - [ { get_attr: [subnets, external_net_prefix] }, '5' ]
sgudze6bff762019-05-23 18:15:49 +0300714
sgudze8442722019-05-08 10:38:04 +0300715 instance_config_host: { get_attr: [cfg01_node, instance_address] }
716
717outputs:
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300718 foundation_public_ip:
sgudze8442722019-05-08 10:38:04 +0300719 description: foundation node IP address (floating) from external network
720 value:
721 get_attr:
722 - foundation_node
723 - instance_floating_address
724...