blob: 928d76f842b93794c74e301c859b658b52b24fb9 [file] [log] [blame]
sgudz9c5699d2019-04-11 14:16:41 +03001---
2
3heat_template_version: queens
4
Tatyana Leontovich95c61382019-06-25 00:56:49 +03005description: MCP environment for heat-cicd-queens-contrail41-sl
sgudz9c5699d2019-04-11 14:16:41 +03006
7parameters:
8 instance_domain:
9 type: string
Tatyana Leontovich95c61382019-06-25 00:56:49 +030010 default: heat-cicd-queens-contrail41-sl.local
sgudz9c5699d2019-04-11 14:16:41 +030011 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
Andrew Baraniuk6361cfc2019-06-04 12:58:14 +030023 default: "10.9.0.0/24"
sgudz9c5699d2019-04-11 14:16:41 +030024 management_subnet_cidr:
25 type: string
sgudzc9f50d12019-05-31 14:25:34 +030026 default: "10.7.0.0/24"
sgudz9c5699d2019-04-11 14:16:41 +030027 management_subnet_cfg01_ip:
28 type: string
sgudzc9f50d12019-05-31 14:25:34 +030029 default: 10.7.0.15
sgudz9c5699d2019-04-11 14:16:41 +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
Hanna Arhipova31cb1d82021-01-27 09:41:11 +020042 deploy_empty_node:
43 type: boolean
44 default: False
sgudz9c5699d2019-04-11 14:16:41 +030045
46 key_pair:
47 type: string
48
49 ctl_flavor:
50 type: string
51 cfg_flavor:
52 type: string
53 cid_flavor:
54 type: string
55 ntw_flavor:
56 type: string
57 nal_flavor:
58 type: string
59 kvm_fake_flavor:
60 type: string
61 dbs_flavor:
62 type: string
63 msg_flavor:
64 type: string
65 mon_flavor:
66 type: string
67 log_flavor:
68 type: string
69 mtr_flavor:
70 type: string
71 cmp_flavor:
72 type: string
sgudz47545942019-04-25 19:34:56 +030073 cmn_flavor:
74 type: string
75 rgw_flavor:
76 type: string
77 osd_flavor:
78 type: string
sgudz9c5699d2019-04-11 14:16:41 +030079 foundation_flavor:
80 type: string
Andrew Baraniuke8ddc242019-05-14 18:20:54 +030081 vsrx_flavor:
82 type: string
Dennis Dmitriev88e9f6d2019-05-31 07:41:40 +030083 prx_flavor:
84 type: string
sgudz9c5699d2019-04-11 14:16:41 +030085 net_public:
86 type: string
87
Dennis Dmitrievcba86122019-05-24 13:41:46 +030088 foundation_image:
89 type: string
90
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +030091 bm_availability_zone:
92 type: string
93 vm_availability_zone:
94 type: string
95
sgudz9c5699d2019-04-11 14:16:41 +030096resources:
97 networks:
98 type: MCP::Networks
99 properties:
100 stack_name: { get_param: "OS::stack_name" }
101 env_name: { get_param: env_name }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300102 subnets:
103 depends_on: [networks]
Hanna Arhipova609c9912020-11-18 15:04:41 +0200104 type: MCP::SubnetsWithFloating
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300105 properties:
106 stack_name: { get_param: "OS::stack_name" }
107 env_name: { get_param: env_name }
108 management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] }
109 control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] }
110 tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] }
111 external_net: { list_join: ['-', [ 'external_net', { get_param: env_name } ]] }
sgudzc9f50d12019-05-31 14:25:34 +0300112 control_subnet_cidr: { get_param: control_subnet_cidr }
113 tenant_subnet_cidr: { get_param: tenant_subnet_cidr }
114 external_subnet_cidr: { get_param: external_subnet_cidr }
115 management_subnet_cidr: { get_param: management_subnet_cidr }
116 management_subnet_gateway_ip: { get_param: management_subnet_gateway_ip }
117 management_subnet_pool_start: { get_param: management_subnet_pool_start }
118 management_subnet_pool_end: { get_param: management_subnet_pool_end }
sgudz9c5699d2019-04-11 14:16:41 +0300119
120 #flavors:
121 # type: MCP::Flavors
122
123 cfg01_node:
124 type: MCP::MasterNode
sgudz22628a32019-06-12 11:34:04 +0300125 depends_on: [subnets]
sgudz9c5699d2019-04-11 14:16:41 +0300126 properties:
127 env_name: { get_param: env_name }
128 mcp_version: { get_param: mcp_version }
129 cfg01_flavor: { get_param: cfg_flavor }
PGlazov88c96b12021-09-21 13:11:21 +0400130 availability_zone: { get_param: vm_availability_zone }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300131 management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] }
132 control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] }
133 tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] }
134 external_net: { list_join: ['-', [ 'external_net', { get_param: env_name } ]] }
sgudzc9f50d12019-05-31 14:25:34 +0300135 salt_master_control_ip: { get_param: salt_master_control_ip }
136 management_subnet_cfg01_ip: { get_param: management_subnet_cfg01_ip }
sgudze6bff762019-05-23 18:15:49 +0300137 tenant_net_static_ip:
138 list_join:
139 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300140 - [ { get_attr: [subnets, tenant_net_prefix] }, '15' ]
sgudze6bff762019-05-23 18:15:49 +0300141 external_net_static_ip:
142 list_join:
143 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300144 - [ { get_attr: [subnets, external_net_prefix] }, '15' ]
sgudz9c5699d2019-04-11 14:16:41 +0300145 instance_name: cfg01
146 instance_domain: {get_param: instance_domain}
sgudz9c5699d2019-04-11 14:16:41 +0300147
148 control_cluster:
149 type: MCP::MultipleInstance
150 depends_on: [cfg01_node]
151 properties:
152 env_name: { get_param: env_name }
153 mcp_version: { get_param: mcp_version }
154 instance_domain: {get_param: instance_domain}
155 instance01_name: ctl01
156 instance02_name: ctl02
157 instance03_name: ctl03
158 instance_flavor: {get_param: ctl_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300159 availability_zone: { get_param: vm_availability_zone }
sgudz9c5699d2019-04-11 14:16:41 +0300160 underlay_userdata: { get_file: ./underlay-userdata.yaml }
161 instance01_control_net_static_ip:
162 list_join:
163 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300164 - [ { get_attr: [subnets, control_net_prefix] }, '11' ]
sgudz9c5699d2019-04-11 14:16:41 +0300165 instance02_control_net_static_ip:
166 list_join:
167 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300168 - [ { get_attr: [subnets, control_net_prefix] }, '12' ]
sgudz9c5699d2019-04-11 14:16:41 +0300169 instance03_control_net_static_ip:
170 list_join:
171 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300172 - [ { get_attr: [subnets, control_net_prefix] }, '13' ]
sgudze6bff762019-05-23 18:15:49 +0300173 instance01_tenant_net_static_ip:
174 list_join:
175 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300176 - [ { get_attr: [subnets, tenant_net_prefix] }, '11' ]
sgudze6bff762019-05-23 18:15:49 +0300177 instance02_tenant_net_static_ip:
178 list_join:
179 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300180 - [ { get_attr: [subnets, tenant_net_prefix] }, '12' ]
sgudze6bff762019-05-23 18:15:49 +0300181 instance03_tenant_net_static_ip:
182 list_join:
183 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300184 - [ { get_attr: [subnets, tenant_net_prefix] }, '13' ]
sgudze6bff762019-05-23 18:15:49 +0300185 instance01_external_net_static_ip:
186 list_join:
187 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300188 - [ { get_attr: [subnets, external_net_prefix] }, '11' ]
sgudze6bff762019-05-23 18:15:49 +0300189 instance02_external_net_static_ip:
190 list_join:
191 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300192 - [ { get_attr: [subnets, external_net_prefix] }, '12' ]
sgudze6bff762019-05-23 18:15:49 +0300193 instance03_external_net_static_ip:
194 list_join:
195 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300196 - [ { get_attr: [subnets, external_net_prefix] }, '13' ]
sgudz9c5699d2019-04-11 14:16:41 +0300197
198 instance_config_host: { get_attr: [cfg01_node, instance_address] }
199
200 openstack_database_cluster:
201 type: MCP::MultipleInstance
202 depends_on: [control_cluster]
203 properties:
204 env_name: { get_param: env_name }
205 mcp_version: { get_param: mcp_version }
206 instance_domain: {get_param: instance_domain}
207 instance01_name: dbs01
208 instance02_name: dbs02
209 instance03_name: dbs03
210 instance_flavor: {get_param: dbs_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300211 availability_zone: { get_param: vm_availability_zone }
sgudz9c5699d2019-04-11 14:16:41 +0300212 underlay_userdata: { get_file: ./underlay-userdata.yaml }
213 instance01_control_net_static_ip:
214 list_join:
215 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300216 - [ { get_attr: [subnets, control_net_prefix] }, '51' ]
sgudz9c5699d2019-04-11 14:16:41 +0300217 instance02_control_net_static_ip:
218 list_join:
219 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300220 - [ { get_attr: [subnets, control_net_prefix] }, '52' ]
sgudz9c5699d2019-04-11 14:16:41 +0300221 instance03_control_net_static_ip:
222 list_join:
223 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300224 - [ { get_attr: [subnets, control_net_prefix] }, '53' ]
sgudze6bff762019-05-23 18:15:49 +0300225 instance01_tenant_net_static_ip:
226 list_join:
227 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300228 - [ { get_attr: [subnets, tenant_net_prefix] }, '51' ]
sgudze6bff762019-05-23 18:15:49 +0300229 instance02_tenant_net_static_ip:
230 list_join:
231 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300232 - [ { get_attr: [subnets, tenant_net_prefix] }, '52' ]
sgudze6bff762019-05-23 18:15:49 +0300233 instance03_tenant_net_static_ip:
234 list_join:
235 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300236 - [ { get_attr: [subnets, tenant_net_prefix] }, '53' ]
sgudze6bff762019-05-23 18:15:49 +0300237 instance01_external_net_static_ip:
238 list_join:
239 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300240 - [ { get_attr: [subnets, external_net_prefix] }, '51' ]
sgudze6bff762019-05-23 18:15:49 +0300241 instance02_external_net_static_ip:
242 list_join:
243 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300244 - [ { get_attr: [subnets, external_net_prefix] }, '52' ]
sgudze6bff762019-05-23 18:15:49 +0300245 instance03_external_net_static_ip:
246 list_join:
247 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300248 - [ { get_attr: [subnets, external_net_prefix] }, '53' ]
sgudze6bff762019-05-23 18:15:49 +0300249
sgudz9c5699d2019-04-11 14:16:41 +0300250 instance_config_host: { get_attr: [cfg01_node, instance_address] }
251
252 fake_kvm_cluster:
253 type: MCP::MultipleInstance
254 depends_on: [cfg01_node]
255 properties:
256 env_name: { get_param: env_name }
257 mcp_version: { get_param: mcp_version }
258 instance_domain: {get_param: instance_domain}
259 instance01_name: kvm01
260 instance02_name: kvm02
261 instance03_name: kvm03
262 instance_flavor: {get_param: kvm_fake_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300263 availability_zone: { get_param: vm_availability_zone }
sgudz9c5699d2019-04-11 14:16:41 +0300264 underlay_userdata: { get_file: ./underlay-userdata.yaml }
265 instance01_control_net_static_ip:
266 list_join:
267 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300268 - [ { get_attr: [subnets, control_net_prefix] }, '241' ]
sgudz9c5699d2019-04-11 14:16:41 +0300269 instance02_control_net_static_ip:
270 list_join:
271 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300272 - [ { get_attr: [subnets, control_net_prefix] }, '242' ]
sgudz9c5699d2019-04-11 14:16:41 +0300273 instance03_control_net_static_ip:
274 list_join:
275 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300276 - [ { get_attr: [subnets, control_net_prefix] }, '243' ]
sgudze6bff762019-05-23 18:15:49 +0300277 instance01_tenant_net_static_ip:
278 list_join:
279 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300280 - [ { get_attr: [subnets, tenant_net_prefix] }, '241' ]
sgudze6bff762019-05-23 18:15:49 +0300281 instance02_tenant_net_static_ip:
282 list_join:
283 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300284 - [ { get_attr: [subnets, tenant_net_prefix] }, '242' ]
sgudze6bff762019-05-23 18:15:49 +0300285 instance03_tenant_net_static_ip:
286 list_join:
287 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300288 - [ { get_attr: [subnets, tenant_net_prefix] }, '243' ]
sgudze6bff762019-05-23 18:15:49 +0300289 instance01_external_net_static_ip:
290 list_join:
291 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300292 - [ { get_attr: [subnets, external_net_prefix] }, '241' ]
sgudze6bff762019-05-23 18:15:49 +0300293 instance02_external_net_static_ip:
294 list_join:
295 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300296 - [ { get_attr: [subnets, external_net_prefix] }, '242' ]
sgudze6bff762019-05-23 18:15:49 +0300297 instance03_external_net_static_ip:
298 list_join:
299 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300300 - [ { get_attr: [subnets, external_net_prefix] }, '243' ]
sgudz9c5699d2019-04-11 14:16:41 +0300301
302 instance_config_host: { get_attr: [cfg01_node, instance_address] }
303
304 openstack_message_queue_cluster:
305 type: MCP::MultipleInstance
306 depends_on: [openstack_database_cluster]
307 properties:
308 env_name: { get_param: env_name }
309 mcp_version: { get_param: mcp_version }
310 instance_domain: {get_param: instance_domain}
311 instance01_name: msg01
312 instance02_name: msg02
313 instance03_name: msg03
314 instance_flavor: {get_param: msg_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300315 availability_zone: { get_param: vm_availability_zone }
sgudz9c5699d2019-04-11 14:16:41 +0300316 underlay_userdata: { get_file: ./underlay-userdata.yaml }
317 instance01_control_net_static_ip:
318 list_join:
319 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300320 - [ { get_attr: [subnets, control_net_prefix] }, '41' ]
sgudz9c5699d2019-04-11 14:16:41 +0300321 instance02_control_net_static_ip:
322 list_join:
323 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300324 - [ { get_attr: [subnets, control_net_prefix] }, '42' ]
sgudz9c5699d2019-04-11 14:16:41 +0300325 instance03_control_net_static_ip:
326 list_join:
327 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300328 - [ { get_attr: [subnets, control_net_prefix] }, '43' ]
sgudze6bff762019-05-23 18:15:49 +0300329 instance01_tenant_net_static_ip:
330 list_join:
331 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300332 - [ { get_attr: [subnets, tenant_net_prefix] }, '41' ]
sgudze6bff762019-05-23 18:15:49 +0300333 instance02_tenant_net_static_ip:
334 list_join:
335 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300336 - [ { get_attr: [subnets, tenant_net_prefix] }, '42' ]
sgudze6bff762019-05-23 18:15:49 +0300337 instance03_tenant_net_static_ip:
338 list_join:
339 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300340 - [ { get_attr: [subnets, tenant_net_prefix] }, '43' ]
sgudze6bff762019-05-23 18:15:49 +0300341 instance01_external_net_static_ip:
342 list_join:
343 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300344 - [ { get_attr: [subnets, external_net_prefix] }, '41' ]
sgudze6bff762019-05-23 18:15:49 +0300345 instance02_external_net_static_ip:
346 list_join:
347 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300348 - [ { get_attr: [subnets, external_net_prefix] }, '42' ]
sgudze6bff762019-05-23 18:15:49 +0300349 instance03_external_net_static_ip:
350 list_join:
351 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300352 - [ { get_attr: [subnets, external_net_prefix] }, '43' ]
sgudze6bff762019-05-23 18:15:49 +0300353
sgudz9c5699d2019-04-11 14:16:41 +0300354 instance_config_host: { get_attr: [cfg01_node, instance_address] }
355
356 cicd_cluster:
357 type: MCP::MultipleInstance
358 depends_on: [cfg01_node]
359 properties:
360 env_name: { get_param: env_name }
361 mcp_version: { get_param: mcp_version }
362 instance_domain: {get_param: instance_domain}
363 instance01_name: cid01
364 instance02_name: cid02
365 instance03_name: cid03
366 instance_flavor: {get_param: cid_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300367 availability_zone: { get_param: vm_availability_zone }
sgudz9c5699d2019-04-11 14:16:41 +0300368 underlay_userdata: { get_file: ./underlay-userdata.yaml }
369 instance01_control_net_static_ip:
370 list_join:
371 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300372 - [ { get_attr: [subnets, control_net_prefix] }, '91' ]
sgudz9c5699d2019-04-11 14:16:41 +0300373 instance02_control_net_static_ip:
374 list_join:
375 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300376 - [ { get_attr: [subnets, control_net_prefix] }, '92' ]
sgudz9c5699d2019-04-11 14:16:41 +0300377 instance03_control_net_static_ip:
378 list_join:
379 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300380 - [ { get_attr: [subnets, control_net_prefix] }, '93' ]
sgudze6bff762019-05-23 18:15:49 +0300381 instance01_tenant_net_static_ip:
382 list_join:
383 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300384 - [ { get_attr: [subnets, tenant_net_prefix] }, '91' ]
sgudze6bff762019-05-23 18:15:49 +0300385 instance02_tenant_net_static_ip:
386 list_join:
387 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300388 - [ { get_attr: [subnets, tenant_net_prefix] }, '92' ]
sgudze6bff762019-05-23 18:15:49 +0300389 instance03_tenant_net_static_ip:
390 list_join:
391 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300392 - [ { get_attr: [subnets, tenant_net_prefix] }, '93' ]
sgudze6bff762019-05-23 18:15:49 +0300393 instance01_external_net_static_ip:
394 list_join:
395 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300396 - [ { get_attr: [subnets, external_net_prefix] }, '91' ]
sgudze6bff762019-05-23 18:15:49 +0300397 instance02_external_net_static_ip:
398 list_join:
399 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300400 - [ { get_attr: [subnets, external_net_prefix] }, '92' ]
sgudze6bff762019-05-23 18:15:49 +0300401 instance03_external_net_static_ip:
402 list_join:
403 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300404 - [ { get_attr: [subnets, external_net_prefix] }, '93' ]
sgudz9c5699d2019-04-11 14:16:41 +0300405
406 instance_config_host: { get_attr: [cfg01_node, instance_address] }
407
408 contrail_ntw_cluster:
409 type: MCP::MultipleInstance
410 depends_on: [openstack_message_queue_cluster]
411 properties:
412 env_name: { get_param: env_name }
413 mcp_version: { get_param: mcp_version }
414 instance_domain: {get_param: instance_domain}
415 instance01_name: ntw01
416 instance02_name: ntw02
417 instance03_name: ntw03
418 instance_flavor: {get_param: ntw_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300419 availability_zone: { get_param: vm_availability_zone }
sgudz9c5699d2019-04-11 14:16:41 +0300420 underlay_userdata: { get_file: ./underlay-userdata.yaml }
421 instance01_control_net_static_ip:
422 list_join:
423 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300424 - [ { get_attr: [subnets, control_net_prefix] }, '21' ]
sgudz9c5699d2019-04-11 14:16:41 +0300425 instance02_control_net_static_ip:
426 list_join:
427 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300428 - [ { get_attr: [subnets, control_net_prefix] }, '22' ]
sgudz9c5699d2019-04-11 14:16:41 +0300429 instance03_control_net_static_ip:
430 list_join:
431 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300432 - [ { get_attr: [subnets, control_net_prefix] }, '23' ]
sgudze6bff762019-05-23 18:15:49 +0300433 instance01_tenant_net_static_ip:
434 list_join:
435 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300436 - [ { get_attr: [subnets, tenant_net_prefix] }, '21' ]
sgudze6bff762019-05-23 18:15:49 +0300437 instance02_tenant_net_static_ip:
438 list_join:
439 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300440 - [ { get_attr: [subnets, tenant_net_prefix] }, '22' ]
sgudze6bff762019-05-23 18:15:49 +0300441 instance03_tenant_net_static_ip:
442 list_join:
443 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300444 - [ { get_attr: [subnets, tenant_net_prefix] }, '23' ]
sgudze6bff762019-05-23 18:15:49 +0300445 instance01_external_net_static_ip:
446 list_join:
447 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300448 - [ { get_attr: [subnets, external_net_prefix] }, '21' ]
sgudze6bff762019-05-23 18:15:49 +0300449 instance02_external_net_static_ip:
450 list_join:
451 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300452 - [ { get_attr: [subnets, external_net_prefix] }, '22' ]
sgudze6bff762019-05-23 18:15:49 +0300453 instance03_external_net_static_ip:
454 list_join:
455 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300456 - [ { get_attr: [subnets, external_net_prefix] }, '23' ]
sgudze6bff762019-05-23 18:15:49 +0300457
sgudz9c5699d2019-04-11 14:16:41 +0300458 instance_config_host: { get_attr: [cfg01_node, instance_address] }
459
460 contrail_nal_cluster:
461 type: MCP::MultipleInstance
462 depends_on: [contrail_ntw_cluster]
463 properties:
464 env_name: { get_param: env_name }
465 mcp_version: { get_param: mcp_version }
466 instance_domain: {get_param: instance_domain}
467 instance01_name: nal01
468 instance02_name: nal02
469 instance03_name: nal03
470 instance_flavor: {get_param: nal_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300471 availability_zone: { get_param: vm_availability_zone }
sgudz9c5699d2019-04-11 14:16:41 +0300472 underlay_userdata: { get_file: ./underlay-userdata.yaml }
473 instance01_control_net_static_ip:
474 list_join:
475 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300476 - [ { get_attr: [subnets, control_net_prefix] }, '31' ]
sgudz9c5699d2019-04-11 14:16:41 +0300477 instance02_control_net_static_ip:
478 list_join:
479 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300480 - [ { get_attr: [subnets, control_net_prefix] }, '32' ]
sgudz9c5699d2019-04-11 14:16:41 +0300481 instance03_control_net_static_ip:
482 list_join:
483 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300484 - [ { get_attr: [subnets, control_net_prefix] }, '33' ]
sgudze6bff762019-05-23 18:15:49 +0300485 instance01_tenant_net_static_ip:
486 list_join:
487 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300488 - [ { get_attr: [subnets, tenant_net_prefix] }, '31' ]
sgudze6bff762019-05-23 18:15:49 +0300489 instance02_tenant_net_static_ip:
490 list_join:
491 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300492 - [ { get_attr: [subnets, tenant_net_prefix] }, '32' ]
sgudze6bff762019-05-23 18:15:49 +0300493 instance03_tenant_net_static_ip:
494 list_join:
495 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300496 - [ { get_attr: [subnets, tenant_net_prefix] }, '33' ]
sgudze6bff762019-05-23 18:15:49 +0300497 instance01_external_net_static_ip:
498 list_join:
499 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300500 - [ { get_attr: [subnets, external_net_prefix] }, '31' ]
sgudze6bff762019-05-23 18:15:49 +0300501 instance02_external_net_static_ip:
502 list_join:
503 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300504 - [ { get_attr: [subnets, external_net_prefix] }, '32' ]
sgudze6bff762019-05-23 18:15:49 +0300505 instance03_external_net_static_ip:
506 list_join:
507 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300508 - [ { get_attr: [subnets, external_net_prefix] }, '33' ]
sgudze6bff762019-05-23 18:15:49 +0300509
sgudz9c5699d2019-04-11 14:16:41 +0300510 instance_config_host: { get_attr: [cfg01_node, instance_address] }
511
512 stacklight_monitor_cluster:
513 type: MCP::MultipleInstance
514 depends_on: [openstack_message_queue_cluster]
515 properties:
516 env_name: { get_param: env_name }
517 mcp_version: { get_param: mcp_version }
518 instance_domain: {get_param: instance_domain}
519 instance01_name: mon01
520 instance02_name: mon02
521 instance03_name: mon03
522 instance_flavor: {get_param: mon_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300523 availability_zone: { get_param: vm_availability_zone }
sgudz9c5699d2019-04-11 14:16:41 +0300524 underlay_userdata: { get_file: ./underlay-userdata.yaml }
525 instance01_control_net_static_ip:
526 list_join:
527 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300528 - [ { get_attr: [subnets, control_net_prefix] }, '71' ]
sgudz9c5699d2019-04-11 14:16:41 +0300529 instance02_control_net_static_ip:
530 list_join:
531 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300532 - [ { get_attr: [subnets, control_net_prefix] }, '72' ]
sgudz9c5699d2019-04-11 14:16:41 +0300533 instance03_control_net_static_ip:
534 list_join:
535 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300536 - [ { get_attr: [subnets, control_net_prefix] }, '73' ]
sgudze6bff762019-05-23 18:15:49 +0300537 instance01_tenant_net_static_ip:
538 list_join:
539 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300540 - [ { get_attr: [subnets, tenant_net_prefix] }, '71' ]
sgudze6bff762019-05-23 18:15:49 +0300541 instance02_tenant_net_static_ip:
542 list_join:
543 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300544 - [ { get_attr: [subnets, tenant_net_prefix] }, '72' ]
sgudze6bff762019-05-23 18:15:49 +0300545 instance03_tenant_net_static_ip:
546 list_join:
547 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300548 - [ { get_attr: [subnets, tenant_net_prefix] }, '73' ]
sgudze6bff762019-05-23 18:15:49 +0300549 instance01_external_net_static_ip:
550 list_join:
551 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300552 - [ { get_attr: [subnets, external_net_prefix] }, '71' ]
sgudze6bff762019-05-23 18:15:49 +0300553 instance02_external_net_static_ip:
554 list_join:
555 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300556 - [ { get_attr: [subnets, external_net_prefix] }, '72' ]
sgudze6bff762019-05-23 18:15:49 +0300557 instance03_external_net_static_ip:
558 list_join:
559 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300560 - [ { get_attr: [subnets, external_net_prefix] }, '73' ]
sgudze6bff762019-05-23 18:15:49 +0300561
sgudz9c5699d2019-04-11 14:16:41 +0300562 instance_config_host: { get_attr: [cfg01_node, instance_address] }
563
564 stacklight_log_cluster:
565 type: MCP::MultipleInstance
566 depends_on: [stacklight_monitor_cluster]
567 properties:
568 env_name: { get_param: env_name }
569 mcp_version: { get_param: mcp_version }
570 instance_domain: {get_param: instance_domain}
571 instance01_name: log01
572 instance02_name: log02
573 instance03_name: log03
574 instance_flavor: {get_param: log_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300575 availability_zone: { get_param: vm_availability_zone }
sgudz9c5699d2019-04-11 14:16:41 +0300576 underlay_userdata: { get_file: ./underlay-userdata.yaml }
577 instance01_control_net_static_ip:
578 list_join:
579 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300580 - [ { get_attr: [subnets, control_net_prefix] }, '61' ]
sgudz9c5699d2019-04-11 14:16:41 +0300581 instance02_control_net_static_ip:
582 list_join:
583 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300584 - [ { get_attr: [subnets, control_net_prefix] }, '62' ]
sgudz9c5699d2019-04-11 14:16:41 +0300585 instance03_control_net_static_ip:
586 list_join:
587 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300588 - [ { get_attr: [subnets, control_net_prefix] }, '63' ]
sgudze6bff762019-05-23 18:15:49 +0300589 instance01_tenant_net_static_ip:
590 list_join:
591 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300592 - [ { get_attr: [subnets, tenant_net_prefix] }, '61' ]
sgudze6bff762019-05-23 18:15:49 +0300593 instance02_tenant_net_static_ip:
594 list_join:
595 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300596 - [ { get_attr: [subnets, tenant_net_prefix] }, '62' ]
sgudze6bff762019-05-23 18:15:49 +0300597 instance03_tenant_net_static_ip:
598 list_join:
599 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300600 - [ { get_attr: [subnets, tenant_net_prefix] }, '63' ]
sgudze6bff762019-05-23 18:15:49 +0300601 instance01_external_net_static_ip:
602 list_join:
603 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300604 - [ { get_attr: [subnets, external_net_prefix] }, '61' ]
sgudze6bff762019-05-23 18:15:49 +0300605 instance02_external_net_static_ip:
606 list_join:
607 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300608 - [ { get_attr: [subnets, external_net_prefix] }, '62' ]
sgudze6bff762019-05-23 18:15:49 +0300609 instance03_external_net_static_ip:
610 list_join:
611 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300612 - [ { get_attr: [subnets, external_net_prefix] }, '63' ]
sgudze6bff762019-05-23 18:15:49 +0300613
sgudz9c5699d2019-04-11 14:16:41 +0300614 instance_config_host: { get_attr: [cfg01_node, instance_address] }
615
616 stacklight_mtr_cluster:
617 type: MCP::MultipleInstance
618 depends_on: [stacklight_log_cluster]
619 properties:
620 env_name: { get_param: env_name }
621 mcp_version: { get_param: mcp_version }
622 instance_domain: {get_param: instance_domain}
623 instance01_name: mtr01
624 instance02_name: mtr02
625 instance03_name: mtr03
626 instance_flavor: {get_param: mtr_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300627 availability_zone: { get_param: vm_availability_zone }
sgudz9c5699d2019-04-11 14:16:41 +0300628 underlay_userdata: { get_file: ./underlay-userdata.yaml }
629 instance01_control_net_static_ip:
630 list_join:
631 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300632 - [ { get_attr: [subnets, control_net_prefix] }, '86' ]
sgudz9c5699d2019-04-11 14:16:41 +0300633 instance02_control_net_static_ip:
634 list_join:
635 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300636 - [ { get_attr: [subnets, control_net_prefix] }, '87' ]
sgudz9c5699d2019-04-11 14:16:41 +0300637 instance03_control_net_static_ip:
638 list_join:
639 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300640 - [ { get_attr: [subnets, control_net_prefix] }, '88' ]
sgudze6bff762019-05-23 18:15:49 +0300641 instance01_tenant_net_static_ip:
642 list_join:
643 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300644 - [ { get_attr: [subnets, tenant_net_prefix] }, '86' ]
sgudze6bff762019-05-23 18:15:49 +0300645 instance02_tenant_net_static_ip:
646 list_join:
647 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300648 - [ { get_attr: [subnets, tenant_net_prefix] }, '87' ]
sgudze6bff762019-05-23 18:15:49 +0300649 instance03_tenant_net_static_ip:
650 list_join:
651 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300652 - [ { get_attr: [subnets, tenant_net_prefix] }, '88' ]
sgudze6bff762019-05-23 18:15:49 +0300653 instance01_external_net_static_ip:
654 list_join:
655 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300656 - [ { get_attr: [subnets, external_net_prefix] }, '86' ]
sgudze6bff762019-05-23 18:15:49 +0300657 instance02_external_net_static_ip:
658 list_join:
659 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300660 - [ { get_attr: [subnets, external_net_prefix] }, '87' ]
sgudze6bff762019-05-23 18:15:49 +0300661 instance03_external_net_static_ip:
662 list_join:
663 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300664 - [ { get_attr: [subnets, external_net_prefix] }, '88' ]
sgudze6bff762019-05-23 18:15:49 +0300665
sgudz9c5699d2019-04-11 14:16:41 +0300666 instance_config_host: { get_attr: [cfg01_node, instance_address] }
667
sgudz47545942019-04-25 19:34:56 +0300668 ceph_cmn_cluster:
669 type: MCP::MultipleInstance
670 depends_on: [cfg01_node]
671 properties:
672 env_name: { get_param: env_name }
673 mcp_version: { get_param: mcp_version }
674 instance_domain: {get_param: instance_domain}
675 instance01_name: cmn01
676 instance02_name: cmn02
677 instance03_name: cmn03
678 instance_flavor: {get_param: cmn_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300679 availability_zone: { get_param: vm_availability_zone }
sgudz47545942019-04-25 19:34:56 +0300680 underlay_userdata: { get_file: ./underlay-userdata.yaml }
681 instance01_control_net_static_ip:
682 list_join:
683 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300684 - [ { get_attr: [subnets, control_net_prefix] }, '66' ]
sgudz47545942019-04-25 19:34:56 +0300685 instance02_control_net_static_ip:
686 list_join:
687 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300688 - [ { get_attr: [subnets, control_net_prefix] }, '67' ]
sgudz47545942019-04-25 19:34:56 +0300689 instance03_control_net_static_ip:
690 list_join:
691 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300692 - [ { get_attr: [subnets, control_net_prefix] }, '68' ]
sgudze6bff762019-05-23 18:15:49 +0300693 instance01_tenant_net_static_ip:
694 list_join:
695 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300696 - [ { get_attr: [subnets, tenant_net_prefix] }, '66' ]
sgudze6bff762019-05-23 18:15:49 +0300697 instance02_tenant_net_static_ip:
698 list_join:
699 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300700 - [ { get_attr: [subnets, tenant_net_prefix] }, '67' ]
sgudze6bff762019-05-23 18:15:49 +0300701 instance03_tenant_net_static_ip:
702 list_join:
703 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300704 - [ { get_attr: [subnets, tenant_net_prefix] }, '68' ]
sgudze6bff762019-05-23 18:15:49 +0300705 instance01_external_net_static_ip:
706 list_join:
707 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300708 - [ { get_attr: [subnets, external_net_prefix] }, '66' ]
sgudze6bff762019-05-23 18:15:49 +0300709 instance02_external_net_static_ip:
710 list_join:
711 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300712 - [ { get_attr: [subnets, external_net_prefix] }, '67' ]
sgudze6bff762019-05-23 18:15:49 +0300713 instance03_external_net_static_ip:
714 list_join:
715 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300716 - [ { get_attr: [subnets, external_net_prefix] }, '68' ]
sgudz47545942019-04-25 19:34:56 +0300717 instance_config_host: { get_attr: [cfg01_node, instance_address] }
718
719 ceph_rgw_cluster:
720 type: MCP::MultipleInstance
721 depends_on: [cfg01_node]
722 properties:
723 env_name: { get_param: env_name }
724 mcp_version: { get_param: mcp_version }
725 instance_domain: {get_param: instance_domain}
726 instance01_name: rgw01
727 instance02_name: rgw02
728 instance03_name: rgw03
729 instance_flavor: {get_param: rgw_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300730 availability_zone: { get_param: vm_availability_zone }
sgudz47545942019-04-25 19:34:56 +0300731 underlay_userdata: { get_file: ./underlay-userdata.yaml }
732 instance01_control_net_static_ip:
733 list_join:
734 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300735 - [ { get_attr: [subnets, control_net_prefix] }, '76' ]
sgudz47545942019-04-25 19:34:56 +0300736 instance02_control_net_static_ip:
737 list_join:
738 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300739 - [ { get_attr: [subnets, control_net_prefix] }, '77' ]
sgudz47545942019-04-25 19:34:56 +0300740 instance03_control_net_static_ip:
741 list_join:
742 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300743 - [ { get_attr: [subnets, control_net_prefix] }, '78' ]
sgudze6bff762019-05-23 18:15:49 +0300744 instance01_tenant_net_static_ip:
745 list_join:
746 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300747 - [ { get_attr: [subnets, tenant_net_prefix] }, '76' ]
sgudze6bff762019-05-23 18:15:49 +0300748 instance02_tenant_net_static_ip:
749 list_join:
750 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300751 - [ { get_attr: [subnets, tenant_net_prefix] }, '77' ]
sgudze6bff762019-05-23 18:15:49 +0300752 instance03_tenant_net_static_ip:
753 list_join:
754 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300755 - [ { get_attr: [subnets, tenant_net_prefix] }, '78' ]
sgudze6bff762019-05-23 18:15:49 +0300756 instance01_external_net_static_ip:
757 list_join:
758 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300759 - [ { get_attr: [subnets, external_net_prefix] }, '76' ]
sgudze6bff762019-05-23 18:15:49 +0300760 instance02_external_net_static_ip:
761 list_join:
762 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300763 - [ { get_attr: [subnets, external_net_prefix] }, '77' ]
sgudze6bff762019-05-23 18:15:49 +0300764 instance03_external_net_static_ip:
765 list_join:
766 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300767 - [ { get_attr: [subnets, external_net_prefix] }, '78' ]
sgudz47545942019-04-25 19:34:56 +0300768 instance_config_host: { get_attr: [cfg01_node, instance_address] }
769
770 ceph_osd_cluster:
dtsapikovf0309252020-04-09 23:15:34 +0400771 type: MCP::MultipleInstance2Volumes
sgudz47545942019-04-25 19:34:56 +0300772 depends_on: [cfg01_node]
773 properties:
774 env_name: { get_param: env_name }
775 mcp_version: { get_param: mcp_version }
776 instance_domain: {get_param: instance_domain}
777 instance01_name: osd001
778 instance02_name: osd002
779 instance03_name: osd003
780 instance_flavor: {get_param: osd_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300781 availability_zone: { get_param: vm_availability_zone }
sgudz47545942019-04-25 19:34:56 +0300782 underlay_userdata: { get_file: ./underlay-userdata.yaml }
783 instance01_control_net_static_ip:
784 list_join:
785 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300786 - [ { get_attr: [subnets, control_net_prefix] }, '201' ]
sgudz47545942019-04-25 19:34:56 +0300787 instance02_control_net_static_ip:
788 list_join:
789 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300790 - [ { get_attr: [subnets, control_net_prefix] }, '202' ]
sgudz47545942019-04-25 19:34:56 +0300791 instance03_control_net_static_ip:
792 list_join:
793 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300794 - [ { get_attr: [subnets, control_net_prefix] }, '203' ]
sgudze6bff762019-05-23 18:15:49 +0300795 instance01_tenant_net_static_ip:
796 list_join:
797 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300798 - [ { get_attr: [subnets, tenant_net_prefix] }, '201' ]
sgudze6bff762019-05-23 18:15:49 +0300799 instance02_tenant_net_static_ip:
800 list_join:
801 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300802 - [ { get_attr: [subnets, tenant_net_prefix] }, '202' ]
sgudze6bff762019-05-23 18:15:49 +0300803 instance03_tenant_net_static_ip:
804 list_join:
805 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300806 - [ { get_attr: [subnets, tenant_net_prefix] }, '203' ]
sgudze6bff762019-05-23 18:15:49 +0300807 instance01_external_net_static_ip:
808 list_join:
809 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300810 - [ { get_attr: [subnets, external_net_prefix] }, '201' ]
sgudze6bff762019-05-23 18:15:49 +0300811 instance02_external_net_static_ip:
812 list_join:
813 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300814 - [ { get_attr: [subnets, external_net_prefix] }, '202' ]
sgudze6bff762019-05-23 18:15:49 +0300815 instance03_external_net_static_ip:
816 list_join:
817 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300818 - [ { get_attr: [subnets, external_net_prefix] }, '203' ]
sgudze6bff762019-05-23 18:15:49 +0300819
sgudz47545942019-04-25 19:34:56 +0300820 instance_config_host: { get_attr: [cfg01_node, instance_address] }
821
sgudz9c5699d2019-04-11 14:16:41 +0300822 prx01_virtual:
823 type: MCP::SingleInstance
824 depends_on: [control_cluster]
825 properties:
826 env_name: { get_param: env_name }
827 mcp_version: { get_param: mcp_version }
828 instance_domain: {get_param: instance_domain}
829 instance_name: prx01
Oleksii Butenko5aa4b6c2019-05-30 13:52:05 +0300830 instance_flavor: {get_param: prx_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300831 availability_zone: { get_param: vm_availability_zone }
sgudz9c5699d2019-04-11 14:16:41 +0300832 underlay_userdata: { get_file: ./underlay-userdata.yaml }
833 control_net_static_ip:
834 list_join:
835 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300836 - [ { get_attr: [subnets, control_net_prefix] }, '81' ]
sgudze6bff762019-05-23 18:15:49 +0300837 tenant_net_static_ip:
838 list_join:
839 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300840 - [ { get_attr: [subnets, tenant_net_prefix] }, '81' ]
sgudze6bff762019-05-23 18:15:49 +0300841 external_net_static_ip:
842 list_join:
843 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300844 - [ { get_attr: [subnets, external_net_prefix] }, '81' ]
sgudz9c5699d2019-04-11 14:16:41 +0300845
846 instance_config_host: { get_attr: [cfg01_node, instance_address] }
847
Oleksii Butenko5aa4b6c2019-05-30 13:52:05 +0300848 prx02_virtual:
849 type: MCP::SingleInstance
850 depends_on: [control_cluster]
851 properties:
852 env_name: { get_param: env_name }
853 mcp_version: { get_param: mcp_version }
854 instance_domain: {get_param: instance_domain}
855 instance_name: prx02
856 instance_flavor: {get_param: prx_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300857 availability_zone: { get_param: vm_availability_zone }
Oleksii Butenko5aa4b6c2019-05-30 13:52:05 +0300858 underlay_userdata: { get_file: ./underlay-userdata.yaml }
859 control_net_static_ip:
860 list_join:
861 - '.'
862 - [ { get_attr: [subnets, control_net_prefix] }, '82' ]
863 tenant_net_static_ip:
864 list_join:
865 - '.'
866 - [ { get_attr: [subnets, tenant_net_prefix] }, '82' ]
867 external_net_static_ip:
868 list_join:
869 - '.'
870 - [ { get_attr: [subnets, external_net_prefix] }, '82' ]
871
872 instance_config_host: { get_attr: [cfg01_node, instance_address] }
sgudz9c5699d2019-04-11 14:16:41 +0300873 cmp001_virtual:
874 type: MCP::Compute
875 depends_on: [cfg01_node]
876 properties:
877 env_name: { get_param: env_name }
878 mcp_version: { get_param: mcp_version }
879 instance_domain: {get_param: instance_domain}
880 instance_name: cmp001
881 instance_flavor: {get_param: cmp_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300882 availability_zone: { get_param: vm_availability_zone }
sgudz9c5699d2019-04-11 14:16:41 +0300883 underlay_userdata: { get_file: ./underlay-userdata.yaml }
884 control_net_static_ip:
885 list_join:
886 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300887 - [ { get_attr: [subnets, control_net_prefix] }, '101' ]
sgudze6bff762019-05-23 18:15:49 +0300888 tenant_net_static_ip:
889 list_join:
890 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300891 - [ { get_attr: [subnets, tenant_net_prefix] }, '101' ]
sgudze6bff762019-05-23 18:15:49 +0300892 external_net_static_ip:
893 list_join:
894 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300895 - [ { get_attr: [subnets, external_net_prefix] }, '101' ]
sgudze6bff762019-05-23 18:15:49 +0300896
sgudz9c5699d2019-04-11 14:16:41 +0300897 instance_config_host: { get_attr: [cfg01_node, instance_address] }
898
899 cmp002_virtual:
900 type: MCP::Compute
901 depends_on: [cfg01_node]
902 properties:
903 env_name: { get_param: env_name }
904 mcp_version: { get_param: mcp_version }
905 instance_domain: {get_param: instance_domain}
906 instance_name: cmp002
907 instance_flavor: {get_param: cmp_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300908 availability_zone: { get_param: vm_availability_zone }
sgudz9c5699d2019-04-11 14:16:41 +0300909 underlay_userdata: { get_file: ./underlay-userdata.yaml }
910 control_net_static_ip:
911 list_join:
912 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300913 - [ { get_attr: [subnets, control_net_prefix] }, '102' ]
sgudze6bff762019-05-23 18:15:49 +0300914 tenant_net_static_ip:
915 list_join:
916 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300917 - [ { get_attr: [subnets, tenant_net_prefix] }, '102' ]
sgudze6bff762019-05-23 18:15:49 +0300918 external_net_static_ip:
919 list_join:
920 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300921 - [ { get_attr: [subnets, external_net_prefix] }, '102' ]
sgudze6bff762019-05-23 18:15:49 +0300922
sgudz9c5699d2019-04-11 14:16:41 +0300923 instance_config_host: { get_attr: [cfg01_node, instance_address] }
924
925 foundation_node:
Hanna Arhipova609c9912020-11-18 15:04:41 +0200926 type: MCP::FoundationNodeWithFloating
sgudz22628a32019-06-12 11:34:04 +0300927 depends_on: [subnets]
sgudz9c5699d2019-04-11 14:16:41 +0300928 properties:
929 env_name: { get_param: env_name }
930 mcp_version: { get_param: mcp_version }
931 instance_domain: {get_param: instance_domain}
932 instance_name: foundation
Dennis Dmitrievcba86122019-05-24 13:41:46 +0300933 instance_image: { get_param: foundation_image }
sgudz9c5699d2019-04-11 14:16:41 +0300934 instance_flavor: {get_param: foundation_flavor}
PGlazov88c96b12021-09-21 13:11:21 +0400935 availability_zone: { get_param: vm_availability_zone }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300936 management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] }
937 control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] }
938 tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] }
939 external_net: { list_join: ['-', [ 'external_net', { get_param: env_name } ]] }
sgudzc9f50d12019-05-31 14:25:34 +0300940 management_subnet_gateway_ip: { get_param: management_subnet_gateway_ip }
sgudz9c5699d2019-04-11 14:16:41 +0300941 underlay_userdata: { get_file: ./underlay--user-data-foundation.yaml }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300942 management_net_static_ip:
943 list_join:
944 - '.'
945 - [ { get_attr: [subnets, management_net_prefix] }, '5' ]
sgudz9c5699d2019-04-11 14:16:41 +0300946 control_net_static_ip:
947 list_join:
948 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300949 - [ { get_attr: [subnets, control_net_prefix] }, '5' ]
sgudze6bff762019-05-23 18:15:49 +0300950 tenant_net_static_ip:
951 list_join:
952 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300953 - [ { get_attr: [subnets, tenant_net_prefix] }, '5' ]
sgudze6bff762019-05-23 18:15:49 +0300954 external_net_static_ip:
955 list_join:
956 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300957 - [ { get_attr: [subnets, external_net_prefix] }, '5' ]
sgudz9c5699d2019-04-11 14:16:41 +0300958 instance_config_host: { get_attr: [cfg01_node, instance_address] }
959
Andrew Baraniuke8ddc242019-05-14 18:20:54 +0300960 vsrx_node:
961 type: MCP::VsrxNode
962 depends_on: [cfg01_node]
963 properties:
964 env_name: { get_param: env_name }
965 mcp_version: { get_param: mcp_version }
966 instance_domain: {get_param: instance_domain}
967 instance_name: vsrx
968 instance_flavor: {get_param: vsrx_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300969 availability_zone: { get_param: vm_availability_zone }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300970 management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] }
971 control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] }
972 tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] }
973 external_net: { list_join: ['-', [ 'external_net', { get_param: env_name } ]] }
Andrew Baraniuke8ddc242019-05-14 18:20:54 +0300974 instance_image: system_vsrx-12.1X46-D20.5
Andrew Baraniuke8ddc242019-05-14 18:20:54 +0300975 control_net_static_ip:
976 list_join:
977 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300978 - [ { get_attr: [subnets, control_net_prefix] }, '220' ]
Andrew Baraniuke8ddc242019-05-14 18:20:54 +0300979 tenant_net_static_ip:
980 list_join:
981 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300982 - [ { get_attr: [subnets, tenant_net_prefix] }, '220' ]
Andrew Baraniuke8ddc242019-05-14 18:20:54 +0300983 external_net_static_ip:
984 list_join:
985 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300986 - [ { get_attr: [subnets, external_net_prefix] }, '220' ]
Andrew Baraniuke8ddc242019-05-14 18:20:54 +0300987 instance_config_host: { get_attr: [cfg01_node, instance_address] }
988
Hanna Arhipova31cb1d82021-01-27 09:41:11 +0200989 empty_node:
990 type: MCP::SingleInstance2Volumes
991 depends_on: [cfg01_node]
992 condition: { get_param: deploy_empty_node }
993 properties:
994 env_name: { get_param: env_name }
995 mcp_version: { get_param: mcp_version }
996 instance_domain: {get_param: instance_domain}
997 instance_name: xtra
998 role: none
999 instance_flavor: {get_param: osd_flavor}
1000 availability_zone: { get_param: vm_availability_zone }
1001 underlay_userdata: { get_file: ./underlay-userdata.yaml }
1002 control_net_static_ip:
1003 list_join:
1004 - '.'
1005 - [ { get_attr: [subnets, control_net_prefix] }, '205' ]
1006 tenant_net_static_ip:
1007 list_join:
1008 - '.'
1009 - [ { get_attr: [subnets, tenant_net_prefix] }, '205' ]
1010 external_net_static_ip:
1011 list_join:
1012 - '.'
1013 - [ { get_attr: [subnets, external_net_prefix] }, '205' ]
1014
1015 instance_config_host: { get_attr: [cfg01_node, instance_address] }
1016
1017
sgudz9c5699d2019-04-11 14:16:41 +03001018outputs:
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +03001019 foundation_public_ip:
sgudz9c5699d2019-04-11 14:16:41 +03001020 description: foundation node IP address (floating) from external network
1021 value:
1022 get_attr:
1023 - foundation_node
1024 - instance_floating_address
1025...