blob: 9a295dc007f6dfaba45b40c15cdceae9d9c94b00 [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
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"
sgudze8442722019-05-08 10:38:04 +030024 management_subnet_cidr:
25 type: string
sgudzc9f50d12019-05-31 14:25:34 +030026 default: "10.7.0.0/24"
sgudze8442722019-05-08 10:38:04 +030027 management_subnet_cfg01_ip:
28 type: string
sgudzc9f50d12019-05-31 14:25:34 +030029 default: 10.7.0.15
sgudze8442722019-05-08 10:38:04 +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
sgudze8442722019-05-08 10:38:04 +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 cmn_flavor:
63 type: string
64 rgw_flavor:
65 type: string
66 osd_flavor:
67 type: string
68 foundation_flavor:
69 type: string
70
71 net_public:
72 type: string
73
Dennis Dmitrievcba86122019-05-24 13:41:46 +030074 foundation_image:
75 type: string
76
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +030077 bm_availability_zone:
78 type: string
79 vm_availability_zone:
80 type: string
81
sgudze8442722019-05-08 10:38:04 +030082resources:
83 networks:
84 type: MCP::Networks
85 properties:
86 stack_name: { get_param: "OS::stack_name" }
87 env_name: { get_param: env_name }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +030088 subnets:
89 depends_on: [networks]
90 type: MCP::Subnets
91 properties:
92 stack_name: { get_param: "OS::stack_name" }
93 env_name: { get_param: env_name }
94 management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] }
95 control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] }
96 tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] }
97 external_net: { list_join: ['-', [ 'external_net', { get_param: env_name } ]] }
sgudzc9f50d12019-05-31 14:25:34 +030098 control_subnet_cidr: { get_param: control_subnet_cidr }
99 tenant_subnet_cidr: { get_param: tenant_subnet_cidr }
100 external_subnet_cidr: { get_param: external_subnet_cidr }
101 management_subnet_cidr: { get_param: management_subnet_cidr }
102 management_subnet_gateway_ip: { get_param: management_subnet_gateway_ip }
103 management_subnet_pool_start: { get_param: management_subnet_pool_start }
104 management_subnet_pool_end: { get_param: management_subnet_pool_end }
sgudze8442722019-05-08 10:38:04 +0300105
106 #flavors:
107 # type: MCP::Flavors
108
109 cfg01_node:
110 type: MCP::MasterNode
sgudz22628a32019-06-12 11:34:04 +0300111 depends_on: [subnets]
sgudze8442722019-05-08 10:38:04 +0300112 properties:
113 env_name: { get_param: env_name }
114 mcp_version: { get_param: mcp_version }
115 cfg01_flavor: { get_param: cfg_flavor }
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300116 availability_zone: { get_param: bm_availability_zone }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300117 management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] }
118 control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] }
119 tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] }
120 external_net: { list_join: ['-', [ 'external_net', { get_param: env_name } ]] }
sgudzc9f50d12019-05-31 14:25:34 +0300121 salt_master_control_ip: { get_param: salt_master_control_ip }
122 management_subnet_cfg01_ip: { get_param: management_subnet_cfg01_ip }
sgudze6bff762019-05-23 18:15:49 +0300123 tenant_net_static_ip:
124 list_join:
125 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300126 - [ { get_attr: [subnets, tenant_net_prefix] }, '15' ]
sgudze6bff762019-05-23 18:15:49 +0300127 external_net_static_ip:
128 list_join:
129 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300130 - [ { get_attr: [subnets, external_net_prefix] }, '15' ]
sgudze8442722019-05-08 10:38:04 +0300131 instance_name: cfg01
132 instance_domain: {get_param: instance_domain}
sgudze8442722019-05-08 10:38:04 +0300133
134 control_cluster:
135 type: MCP::MultipleInstance
136 depends_on: [cfg01_node]
137 properties:
138 env_name: { get_param: env_name }
139 mcp_version: { get_param: mcp_version }
140 instance_domain: {get_param: instance_domain}
141 instance01_name: ctl01
142 instance02_name: ctl02
143 instance03_name: ctl03
sgudz917e8d92019-05-21 16:20:02 +0300144 instance01_role: k8s_controller
sgudze8442722019-05-08 10:38:04 +0300145 instance_flavor: {get_param: ctl_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300146 availability_zone: { get_param: vm_availability_zone }
sgudze8442722019-05-08 10:38:04 +0300147 underlay_userdata: { get_file: ./underlay-userdata.yaml }
148 instance01_control_net_static_ip:
149 list_join:
150 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300151 - [ { get_attr: [subnets, control_net_prefix] }, '11' ]
sgudze8442722019-05-08 10:38:04 +0300152 instance02_control_net_static_ip:
153 list_join:
154 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300155 - [ { get_attr: [subnets, control_net_prefix] }, '12' ]
sgudze8442722019-05-08 10:38:04 +0300156 instance03_control_net_static_ip:
157 list_join:
158 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300159 - [ { get_attr: [subnets, control_net_prefix] }, '13' ]
sgudze6bff762019-05-23 18:15:49 +0300160 instance01_tenant_net_static_ip:
161 list_join:
162 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300163 - [ { get_attr: [subnets, tenant_net_prefix] }, '11' ]
sgudze6bff762019-05-23 18:15:49 +0300164 instance02_tenant_net_static_ip:
165 list_join:
166 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300167 - [ { get_attr: [subnets, tenant_net_prefix] }, '12' ]
sgudze6bff762019-05-23 18:15:49 +0300168 instance03_tenant_net_static_ip:
169 list_join:
170 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300171 - [ { get_attr: [subnets, tenant_net_prefix] }, '13' ]
sgudze6bff762019-05-23 18:15:49 +0300172 instance01_external_net_static_ip:
173 list_join:
174 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300175 - [ { get_attr: [subnets, external_net_prefix] }, '11' ]
sgudze6bff762019-05-23 18:15:49 +0300176 instance02_external_net_static_ip:
177 list_join:
178 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300179 - [ { get_attr: [subnets, external_net_prefix] }, '12' ]
sgudze6bff762019-05-23 18:15:49 +0300180 instance03_external_net_static_ip:
181 list_join:
182 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300183 - [ { get_attr: [subnets, external_net_prefix] }, '13' ]
sgudze8442722019-05-08 10:38:04 +0300184
185 instance_config_host: { get_attr: [cfg01_node, instance_address] }
186
187 fake_kvm_cluster:
188 type: MCP::MultipleInstance
189 depends_on: [cfg01_node]
190 properties:
191 env_name: { get_param: env_name }
192 mcp_version: { get_param: mcp_version }
193 instance_domain: {get_param: instance_domain}
194 instance01_name: kvm01
195 instance02_name: kvm02
196 instance03_name: kvm03
197 instance_flavor: {get_param: kvm_fake_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300198 availability_zone: { get_param: vm_availability_zone }
sgudze8442722019-05-08 10:38:04 +0300199 underlay_userdata: { get_file: ./underlay-userdata.yaml }
200 instance01_control_net_static_ip:
201 list_join:
202 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300203 - [ { get_attr: [subnets, control_net_prefix] }, '241' ]
sgudze8442722019-05-08 10:38:04 +0300204 instance02_control_net_static_ip:
205 list_join:
206 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300207 - [ { get_attr: [subnets, control_net_prefix] }, '242' ]
sgudze8442722019-05-08 10:38:04 +0300208 instance03_control_net_static_ip:
209 list_join:
210 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300211 - [ { get_attr: [subnets, control_net_prefix] }, '243' ]
sgudze6bff762019-05-23 18:15:49 +0300212 instance01_tenant_net_static_ip:
213 list_join:
214 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300215 - [ { get_attr: [subnets, tenant_net_prefix] }, '241' ]
sgudze6bff762019-05-23 18:15:49 +0300216 instance02_tenant_net_static_ip:
217 list_join:
218 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300219 - [ { get_attr: [subnets, tenant_net_prefix] }, '242' ]
sgudze6bff762019-05-23 18:15:49 +0300220 instance03_tenant_net_static_ip:
221 list_join:
222 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300223 - [ { get_attr: [subnets, tenant_net_prefix] }, '243' ]
sgudze6bff762019-05-23 18:15:49 +0300224 instance01_external_net_static_ip:
225 list_join:
226 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300227 - [ { get_attr: [subnets, external_net_prefix] }, '241' ]
sgudze6bff762019-05-23 18:15:49 +0300228 instance02_external_net_static_ip:
229 list_join:
230 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300231 - [ { get_attr: [subnets, external_net_prefix] }, '242' ]
sgudze6bff762019-05-23 18:15:49 +0300232 instance03_external_net_static_ip:
233 list_join:
234 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300235 - [ { get_attr: [subnets, external_net_prefix] }, '243' ]
sgudze8442722019-05-08 10:38:04 +0300236
237 instance_config_host: { get_attr: [cfg01_node, instance_address] }
238
239 cicd_cluster:
240 type: MCP::MultipleInstance
241 depends_on: [cfg01_node]
242 properties:
243 env_name: { get_param: env_name }
244 mcp_version: { get_param: mcp_version }
245 instance_domain: {get_param: instance_domain}
246 instance01_name: cid01
247 instance02_name: cid02
248 instance03_name: cid03
249 instance_flavor: {get_param: cid_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300250 availability_zone: { get_param: vm_availability_zone }
sgudze8442722019-05-08 10:38:04 +0300251 underlay_userdata: { get_file: ./underlay-userdata.yaml }
252 instance01_control_net_static_ip:
253 list_join:
254 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300255 - [ { get_attr: [subnets, control_net_prefix] }, '91' ]
sgudze8442722019-05-08 10:38:04 +0300256 instance02_control_net_static_ip:
257 list_join:
258 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300259 - [ { get_attr: [subnets, control_net_prefix] }, '92' ]
sgudze8442722019-05-08 10:38:04 +0300260 instance03_control_net_static_ip:
261 list_join:
262 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300263 - [ { get_attr: [subnets, control_net_prefix] }, '93' ]
sgudze6bff762019-05-23 18:15:49 +0300264 instance01_tenant_net_static_ip:
265 list_join:
266 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300267 - [ { get_attr: [subnets, tenant_net_prefix] }, '91' ]
sgudze6bff762019-05-23 18:15:49 +0300268 instance02_tenant_net_static_ip:
269 list_join:
270 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300271 - [ { get_attr: [subnets, tenant_net_prefix] }, '92' ]
sgudze6bff762019-05-23 18:15:49 +0300272 instance03_tenant_net_static_ip:
273 list_join:
274 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300275 - [ { get_attr: [subnets, tenant_net_prefix] }, '93' ]
sgudze6bff762019-05-23 18:15:49 +0300276 instance01_external_net_static_ip:
277 list_join:
278 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300279 - [ { get_attr: [subnets, external_net_prefix] }, '91' ]
sgudze6bff762019-05-23 18:15:49 +0300280 instance02_external_net_static_ip:
281 list_join:
282 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300283 - [ { get_attr: [subnets, external_net_prefix] }, '92' ]
sgudze6bff762019-05-23 18:15:49 +0300284 instance03_external_net_static_ip:
285 list_join:
286 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300287 - [ { get_attr: [subnets, external_net_prefix] }, '93' ]
sgudze8442722019-05-08 10:38:04 +0300288
289 instance_config_host: { get_attr: [cfg01_node, instance_address] }
290
291 stacklight_monitor_cluster:
292 type: MCP::MultipleInstance
293 depends_on: [openstack_message_queue_cluster]
294 properties:
295 env_name: { get_param: env_name }
296 mcp_version: { get_param: mcp_version }
297 instance_domain: {get_param: instance_domain}
298 instance01_name: mon01
299 instance02_name: mon02
300 instance03_name: mon03
301 instance_flavor: {get_param: mon_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300302 availability_zone: { get_param: vm_availability_zone }
sgudze8442722019-05-08 10:38:04 +0300303 underlay_userdata: { get_file: ./underlay-userdata.yaml }
304 instance01_control_net_static_ip:
305 list_join:
306 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300307 - [ { get_attr: [subnets, control_net_prefix] }, '71' ]
sgudze8442722019-05-08 10:38:04 +0300308 instance02_control_net_static_ip:
309 list_join:
310 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300311 - [ { get_attr: [subnets, control_net_prefix] }, '72' ]
sgudze8442722019-05-08 10:38:04 +0300312 instance03_control_net_static_ip:
313 list_join:
314 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300315 - [ { get_attr: [subnets, control_net_prefix] }, '73' ]
sgudze6bff762019-05-23 18:15:49 +0300316 instance01_tenant_net_static_ip:
317 list_join:
318 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300319 - [ { get_attr: [subnets, tenant_net_prefix] }, '71' ]
sgudze6bff762019-05-23 18:15:49 +0300320 instance02_tenant_net_static_ip:
321 list_join:
322 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300323 - [ { get_attr: [subnets, tenant_net_prefix] }, '72' ]
sgudze6bff762019-05-23 18:15:49 +0300324 instance03_tenant_net_static_ip:
325 list_join:
326 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300327 - [ { get_attr: [subnets, tenant_net_prefix] }, '73' ]
sgudze6bff762019-05-23 18:15:49 +0300328 instance01_external_net_static_ip:
329 list_join:
330 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300331 - [ { get_attr: [subnets, external_net_prefix] }, '71' ]
sgudze6bff762019-05-23 18:15:49 +0300332 instance02_external_net_static_ip:
333 list_join:
334 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300335 - [ { get_attr: [subnets, external_net_prefix] }, '72' ]
sgudze6bff762019-05-23 18:15:49 +0300336 instance03_external_net_static_ip:
337 list_join:
338 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300339 - [ { get_attr: [subnets, external_net_prefix] }, '73' ]
sgudze6bff762019-05-23 18:15:49 +0300340
sgudze8442722019-05-08 10:38:04 +0300341 instance_config_host: { get_attr: [cfg01_node, instance_address] }
342
343 stacklight_log_cluster:
344 type: MCP::MultipleInstance
345 depends_on: [stacklight_monitor_cluster]
346 properties:
347 env_name: { get_param: env_name }
348 mcp_version: { get_param: mcp_version }
349 instance_domain: {get_param: instance_domain}
350 instance01_name: log01
351 instance02_name: log02
352 instance03_name: log03
353 instance_flavor: {get_param: log_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300354 availability_zone: { get_param: vm_availability_zone }
sgudze8442722019-05-08 10:38:04 +0300355 underlay_userdata: { get_file: ./underlay-userdata.yaml }
356 instance01_control_net_static_ip:
357 list_join:
358 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300359 - [ { get_attr: [subnets, control_net_prefix] }, '61' ]
sgudze8442722019-05-08 10:38:04 +0300360 instance02_control_net_static_ip:
361 list_join:
362 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300363 - [ { get_attr: [subnets, control_net_prefix] }, '62' ]
sgudze8442722019-05-08 10:38:04 +0300364 instance03_control_net_static_ip:
365 list_join:
366 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300367 - [ { get_attr: [subnets, control_net_prefix] }, '63' ]
sgudze6bff762019-05-23 18:15:49 +0300368 instance01_tenant_net_static_ip:
369 list_join:
370 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300371 - [ { get_attr: [subnets, tenant_net_prefix] }, '61' ]
sgudze6bff762019-05-23 18:15:49 +0300372 instance02_tenant_net_static_ip:
373 list_join:
374 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300375 - [ { get_attr: [subnets, tenant_net_prefix] }, '62' ]
sgudze6bff762019-05-23 18:15:49 +0300376 instance03_tenant_net_static_ip:
377 list_join:
378 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300379 - [ { get_attr: [subnets, tenant_net_prefix] }, '63' ]
sgudze6bff762019-05-23 18:15:49 +0300380 instance01_external_net_static_ip:
381 list_join:
382 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300383 - [ { get_attr: [subnets, external_net_prefix] }, '61' ]
sgudze6bff762019-05-23 18:15:49 +0300384 instance02_external_net_static_ip:
385 list_join:
386 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300387 - [ { get_attr: [subnets, external_net_prefix] }, '62' ]
sgudze6bff762019-05-23 18:15:49 +0300388 instance03_external_net_static_ip:
389 list_join:
390 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300391 - [ { get_attr: [subnets, external_net_prefix] }, '63' ]
sgudze6bff762019-05-23 18:15:49 +0300392
sgudze8442722019-05-08 10:38:04 +0300393 instance_config_host: { get_attr: [cfg01_node, instance_address] }
394
395 stacklight_mtr_cluster:
396 type: MCP::MultipleInstance
397 depends_on: [stacklight_log_cluster]
398 properties:
399 env_name: { get_param: env_name }
400 mcp_version: { get_param: mcp_version }
401 instance_domain: {get_param: instance_domain}
402 instance01_name: mtr01
403 instance02_name: mtr02
404 instance03_name: mtr03
405 instance_flavor: {get_param: mtr_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300406 availability_zone: { get_param: vm_availability_zone }
sgudze8442722019-05-08 10:38:04 +0300407 underlay_userdata: { get_file: ./underlay-userdata.yaml }
408 instance01_control_net_static_ip:
409 list_join:
410 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300411 - [ { get_attr: [subnets, control_net_prefix] }, '86' ]
sgudze8442722019-05-08 10:38:04 +0300412 instance02_control_net_static_ip:
413 list_join:
414 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300415 - [ { get_attr: [subnets, control_net_prefix] }, '87' ]
sgudze8442722019-05-08 10:38:04 +0300416 instance03_control_net_static_ip:
417 list_join:
418 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300419 - [ { get_attr: [subnets, control_net_prefix] }, '88' ]
sgudze6bff762019-05-23 18:15:49 +0300420 instance01_tenant_net_static_ip:
421 list_join:
422 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300423 - [ { get_attr: [subnets, tenant_net_prefix] }, '86' ]
sgudze6bff762019-05-23 18:15:49 +0300424 instance02_tenant_net_static_ip:
425 list_join:
426 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300427 - [ { get_attr: [subnets, tenant_net_prefix] }, '87' ]
sgudze6bff762019-05-23 18:15:49 +0300428 instance03_tenant_net_static_ip:
429 list_join:
430 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300431 - [ { get_attr: [subnets, tenant_net_prefix] }, '88' ]
sgudze6bff762019-05-23 18:15:49 +0300432 instance01_external_net_static_ip:
433 list_join:
434 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300435 - [ { get_attr: [subnets, external_net_prefix] }, '86' ]
sgudze6bff762019-05-23 18:15:49 +0300436 instance02_external_net_static_ip:
437 list_join:
438 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300439 - [ { get_attr: [subnets, external_net_prefix] }, '87' ]
sgudze6bff762019-05-23 18:15:49 +0300440 instance03_external_net_static_ip:
441 list_join:
442 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300443 - [ { get_attr: [subnets, external_net_prefix] }, '88' ]
sgudze6bff762019-05-23 18:15:49 +0300444
sgudze8442722019-05-08 10:38:04 +0300445 instance_config_host: { get_attr: [cfg01_node, instance_address] }
446
447 ceph_cmn_cluster:
448 type: MCP::MultipleInstance
449 depends_on: [cfg01_node]
450 properties:
451 env_name: { get_param: env_name }
452 mcp_version: { get_param: mcp_version }
453 instance_domain: {get_param: instance_domain}
454 instance01_name: cmn01
455 instance02_name: cmn02
456 instance03_name: cmn03
457 instance_flavor: {get_param: cmn_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300458 availability_zone: { get_param: vm_availability_zone }
sgudze8442722019-05-08 10:38:04 +0300459 underlay_userdata: { get_file: ./underlay-userdata.yaml }
460 instance01_control_net_static_ip:
461 list_join:
462 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300463 - [ { get_attr: [subnets, control_net_prefix] }, '66' ]
sgudze8442722019-05-08 10:38:04 +0300464 instance02_control_net_static_ip:
465 list_join:
466 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300467 - [ { get_attr: [subnets, control_net_prefix] }, '67' ]
sgudze8442722019-05-08 10:38:04 +0300468 instance03_control_net_static_ip:
469 list_join:
470 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300471 - [ { get_attr: [subnets, control_net_prefix] }, '68' ]
sgudze6bff762019-05-23 18:15:49 +0300472 instance01_tenant_net_static_ip:
473 list_join:
474 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300475 - [ { get_attr: [subnets, tenant_net_prefix] }, '66' ]
sgudze6bff762019-05-23 18:15:49 +0300476 instance02_tenant_net_static_ip:
477 list_join:
478 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300479 - [ { get_attr: [subnets, tenant_net_prefix] }, '67' ]
sgudze6bff762019-05-23 18:15:49 +0300480 instance03_tenant_net_static_ip:
481 list_join:
482 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300483 - [ { get_attr: [subnets, tenant_net_prefix] }, '68' ]
sgudze6bff762019-05-23 18:15:49 +0300484 instance01_external_net_static_ip:
485 list_join:
486 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300487 - [ { get_attr: [subnets, external_net_prefix] }, '66' ]
sgudze6bff762019-05-23 18:15:49 +0300488 instance02_external_net_static_ip:
489 list_join:
490 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300491 - [ { get_attr: [subnets, external_net_prefix] }, '67' ]
sgudze6bff762019-05-23 18:15:49 +0300492 instance03_external_net_static_ip:
493 list_join:
494 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300495 - [ { get_attr: [subnets, external_net_prefix] }, '68' ]
sgudze6bff762019-05-23 18:15:49 +0300496
sgudze8442722019-05-08 10:38:04 +0300497 instance_config_host: { get_attr: [cfg01_node, instance_address] }
498
499 ceph_rgw_cluster:
500 type: MCP::MultipleInstance
501 depends_on: [cfg01_node]
502 properties:
503 env_name: { get_param: env_name }
504 mcp_version: { get_param: mcp_version }
505 instance_domain: {get_param: instance_domain}
506 instance01_name: rgw01
507 instance02_name: rgw02
508 instance03_name: rgw03
509 instance_flavor: {get_param: rgw_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300510 availability_zone: { get_param: vm_availability_zone }
sgudze8442722019-05-08 10:38:04 +0300511 underlay_userdata: { get_file: ./underlay-userdata.yaml }
512 instance01_control_net_static_ip:
513 list_join:
514 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300515 - [ { get_attr: [subnets, control_net_prefix] }, '76' ]
sgudze8442722019-05-08 10:38:04 +0300516 instance02_control_net_static_ip:
517 list_join:
518 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300519 - [ { get_attr: [subnets, control_net_prefix] }, '77' ]
sgudze8442722019-05-08 10:38:04 +0300520 instance03_control_net_static_ip:
521 list_join:
522 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300523 - [ { get_attr: [subnets, control_net_prefix] }, '78' ]
sgudze6bff762019-05-23 18:15:49 +0300524 instance01_tenant_net_static_ip:
525 list_join:
526 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300527 - [ { get_attr: [subnets, tenant_net_prefix] }, '76' ]
sgudze6bff762019-05-23 18:15:49 +0300528 instance02_tenant_net_static_ip:
529 list_join:
530 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300531 - [ { get_attr: [subnets, tenant_net_prefix] }, '77' ]
sgudze6bff762019-05-23 18:15:49 +0300532 instance03_tenant_net_static_ip:
533 list_join:
534 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300535 - [ { get_attr: [subnets, tenant_net_prefix] }, '78' ]
sgudze6bff762019-05-23 18:15:49 +0300536 instance01_external_net_static_ip:
537 list_join:
538 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300539 - [ { get_attr: [subnets, external_net_prefix] }, '76' ]
sgudze6bff762019-05-23 18:15:49 +0300540 instance02_external_net_static_ip:
541 list_join:
542 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300543 - [ { get_attr: [subnets, external_net_prefix] }, '77' ]
sgudze6bff762019-05-23 18:15:49 +0300544 instance03_external_net_static_ip:
545 list_join:
546 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300547 - [ { get_attr: [subnets, external_net_prefix] }, '78' ]
sgudze6bff762019-05-23 18:15:49 +0300548
sgudze8442722019-05-08 10:38:04 +0300549 instance_config_host: { get_attr: [cfg01_node, instance_address] }
550
551 ceph_osd_cluster:
552 type: MCP::MultipleInstance
553 depends_on: [cfg01_node]
554 properties:
555 env_name: { get_param: env_name }
556 mcp_version: { get_param: mcp_version }
557 instance_domain: {get_param: instance_domain}
558 instance01_name: osd001
559 instance02_name: osd002
560 instance03_name: osd003
561 instance_flavor: {get_param: osd_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300562 availability_zone: { get_param: vm_availability_zone }
sgudze8442722019-05-08 10:38:04 +0300563 underlay_userdata: { get_file: ./underlay-userdata.yaml }
564 instance01_control_net_static_ip:
565 list_join:
566 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300567 - [ { get_attr: [subnets, control_net_prefix] }, '201' ]
sgudze8442722019-05-08 10:38:04 +0300568 instance02_control_net_static_ip:
569 list_join:
570 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300571 - [ { get_attr: [subnets, control_net_prefix] }, '202' ]
sgudze8442722019-05-08 10:38:04 +0300572 instance03_control_net_static_ip:
573 list_join:
574 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300575 - [ { get_attr: [subnets, control_net_prefix] }, '203' ]
sgudze6bff762019-05-23 18:15:49 +0300576 instance01_tenant_net_static_ip:
577 list_join:
578 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300579 - [ { get_attr: [subnets, tenant_net_prefix] }, '201' ]
sgudze6bff762019-05-23 18:15:49 +0300580 instance02_tenant_net_static_ip:
581 list_join:
582 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300583 - [ { get_attr: [subnets, tenant_net_prefix] }, '202' ]
sgudze6bff762019-05-23 18:15:49 +0300584 instance03_tenant_net_static_ip:
585 list_join:
586 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300587 - [ { get_attr: [subnets, tenant_net_prefix] }, '203' ]
sgudze6bff762019-05-23 18:15:49 +0300588 instance01_external_net_static_ip:
589 list_join:
590 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300591 - [ { get_attr: [subnets, external_net_prefix] }, '201' ]
sgudze6bff762019-05-23 18:15:49 +0300592 instance02_external_net_static_ip:
593 list_join:
594 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300595 - [ { get_attr: [subnets, external_net_prefix] }, '202' ]
sgudze6bff762019-05-23 18:15:49 +0300596 instance03_external_net_static_ip:
597 list_join:
598 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300599 - [ { get_attr: [subnets, external_net_prefix] }, '203' ]
sgudze6bff762019-05-23 18:15:49 +0300600
sgudze8442722019-05-08 10:38:04 +0300601 instance_config_host: { get_attr: [cfg01_node, instance_address] }
602
603 prx01_virtual:
604 type: MCP::SingleInstance
605 depends_on: [control_cluster]
606 properties:
607 env_name: { get_param: env_name }
608 mcp_version: { get_param: mcp_version }
609 instance_domain: {get_param: instance_domain}
610 instance_name: prx01
611 instance_flavor: {get_param: cid_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300612 availability_zone: { get_param: vm_availability_zone }
sgudze8442722019-05-08 10:38:04 +0300613 underlay_userdata: { get_file: ./underlay-userdata.yaml }
614 control_net_static_ip:
615 list_join:
616 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300617 - [ { get_attr: [subnets, control_net_prefix] }, '221' ]
sgudze6bff762019-05-23 18:15:49 +0300618 tenant_net_static_ip:
619 list_join:
620 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300621 - [ { get_attr: [subnets, tenant_net_prefix] }, '221' ]
sgudze6bff762019-05-23 18:15:49 +0300622 external_net_static_ip:
623 list_join:
624 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300625 - [ { get_attr: [subnets, external_net_prefix] }, '221' ]
sgudze6bff762019-05-23 18:15:49 +0300626
sgudze8442722019-05-08 10:38:04 +0300627 instance_config_host: { get_attr: [cfg01_node, instance_address] }
628
629 prx02_virtual:
630 type: MCP::SingleInstance
631 depends_on: [control_cluster]
632 properties:
633 env_name: { get_param: env_name }
634 mcp_version: { get_param: mcp_version }
635 instance_domain: {get_param: instance_domain}
636 instance_name: prx02
637 instance_flavor: {get_param: cid_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300638 availability_zone: { get_param: vm_availability_zone }
sgudze8442722019-05-08 10:38:04 +0300639 underlay_userdata: { get_file: ./underlay-userdata.yaml }
640 control_net_static_ip:
641 list_join:
642 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300643 - [ { get_attr: [subnets, control_net_prefix] }, '222' ]
sgudze6bff762019-05-23 18:15:49 +0300644 tenant_net_static_ip:
645 list_join:
646 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300647 - [ { get_attr: [subnets, tenant_net_prefix] }, '222' ]
sgudze6bff762019-05-23 18:15:49 +0300648 external_net_static_ip:
649 list_join:
650 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300651 - [ { get_attr: [subnets, external_net_prefix] }, '222' ]
sgudze8442722019-05-08 10:38:04 +0300652 instance_config_host: { get_attr: [cfg01_node, instance_address] }
653
654 cmp001_virtual:
655 type: MCP::Compute
656 depends_on: [cfg01_node]
657 properties:
658 env_name: { get_param: env_name }
659 mcp_version: { get_param: mcp_version }
660 instance_domain: {get_param: instance_domain}
661 instance_name: cmp001
662 instance_flavor: {get_param: cmp_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300663 availability_zone: { get_param: vm_availability_zone }
sgudze8442722019-05-08 10:38:04 +0300664 underlay_userdata: { get_file: ./underlay-userdata.yaml }
665 control_net_static_ip:
666 list_join:
667 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300668 - [ { get_attr: [subnets, control_net_prefix] }, '101' ]
sgudze6bff762019-05-23 18:15:49 +0300669 tenant_net_static_ip:
670 list_join:
671 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300672 - [ { get_attr: [subnets, tenant_net_prefix] }, '101' ]
sgudze6bff762019-05-23 18:15:49 +0300673 external_net_static_ip:
674 list_join:
675 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300676 - [ { get_attr: [subnets, external_net_prefix] }, '101' ]
sgudze6bff762019-05-23 18:15:49 +0300677
sgudze8442722019-05-08 10:38:04 +0300678 instance_config_host: { get_attr: [cfg01_node, instance_address] }
679
680 cmp002_virtual:
681 type: MCP::Compute
682 depends_on: [cfg01_node]
683 properties:
684 env_name: { get_param: env_name }
685 mcp_version: { get_param: mcp_version }
686 instance_domain: {get_param: instance_domain}
687 instance_name: cmp002
688 instance_flavor: {get_param: cmp_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300689 availability_zone: { get_param: vm_availability_zone }
sgudze8442722019-05-08 10:38:04 +0300690 underlay_userdata: { get_file: ./underlay-userdata.yaml }
691 control_net_static_ip:
692 list_join:
693 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300694 - [ { get_attr: [subnets, control_net_prefix] }, '102' ]
sgudze6bff762019-05-23 18:15:49 +0300695 tenant_net_static_ip:
696 list_join:
697 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300698 - [ { get_attr: [subnets, tenant_net_prefix] }, '102' ]
sgudze6bff762019-05-23 18:15:49 +0300699 external_net_static_ip:
700 list_join:
701 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300702 - [ { get_attr: [subnets, external_net_prefix] }, '102' ]
sgudze6bff762019-05-23 18:15:49 +0300703
sgudze8442722019-05-08 10:38:04 +0300704 instance_config_host: { get_attr: [cfg01_node, instance_address] }
705
706 foundation_node:
707 type: MCP::FoundationNode
sgudz22628a32019-06-12 11:34:04 +0300708 depends_on: [subnets]
sgudze8442722019-05-08 10:38:04 +0300709 properties:
710 env_name: { get_param: env_name }
711 mcp_version: { get_param: mcp_version }
712 instance_domain: {get_param: instance_domain}
713 instance_name: foundation
Dennis Dmitrievcba86122019-05-24 13:41:46 +0300714 instance_image: { get_param: foundation_image }
sgudze8442722019-05-08 10:38:04 +0300715 instance_flavor: {get_param: foundation_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300716 availability_zone: { get_param: bm_availability_zone }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300717 management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] }
718 control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] }
719 tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] }
720 external_net: { list_join: ['-', [ 'external_net', { get_param: env_name } ]] }
sgudzc9f50d12019-05-31 14:25:34 +0300721 management_subnet_gateway_ip: { get_param: management_subnet_gateway_ip }
sgudze8442722019-05-08 10:38:04 +0300722 underlay_userdata: { get_file: ./underlay--user-data-foundation.yaml }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300723 management_net_static_ip:
724 list_join:
725 - '.'
726 - [ { get_attr: [subnets, management_net_prefix] }, '5' ]
sgudze8442722019-05-08 10:38:04 +0300727 control_net_static_ip:
728 list_join:
729 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300730 - [ { get_attr: [subnets, control_net_prefix] }, '5' ]
sgudze6bff762019-05-23 18:15:49 +0300731 tenant_net_static_ip:
732 list_join:
733 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300734 - [ { get_attr: [subnets, tenant_net_prefix] }, '5' ]
sgudze6bff762019-05-23 18:15:49 +0300735 external_net_static_ip:
736 list_join:
737 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300738 - [ { get_attr: [subnets, external_net_prefix] }, '5' ]
sgudze6bff762019-05-23 18:15:49 +0300739
sgudze8442722019-05-08 10:38:04 +0300740 instance_config_host: { get_attr: [cfg01_node, instance_address] }
741
742outputs:
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300743 foundation_public_ip:
sgudze8442722019-05-08 10:38:04 +0300744 description: foundation node IP address (floating) from external network
745 value:
746 get_attr:
747 - foundation_node
748 - instance_floating_address
749...