blob: 9aa42b1b48df3fea617ae189e04f1bffec69d13f [file] [log] [blame]
sgudz9c5699d2019-04-11 14:16:41 +03001---
2
3heat_template_version: queens
4
5description: MCP environment for heat-cicd-pike-contrail41-sl
6
7parameters:
8 instance_domain:
9 type: string
10 default: heat-cicd-pike-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 ntw_flavor:
38 type: string
39 nal_flavor:
40 type: string
41 kvm_fake_flavor:
42 type: string
43 dbs_flavor:
44 type: string
45 msg_flavor:
46 type: string
47 mon_flavor:
48 type: string
49 log_flavor:
50 type: string
51 mtr_flavor:
52 type: string
53 cmp_flavor:
54 type: string
sgudz47545942019-04-25 19:34:56 +030055 cmn_flavor:
56 type: string
57 rgw_flavor:
58 type: string
59 osd_flavor:
60 type: string
sgudz9c5699d2019-04-11 14:16:41 +030061 foundation_flavor:
62 type: string
Andrew Baraniuke8ddc242019-05-14 18:20:54 +030063 vsrx_flavor:
64 type: string
Dennis Dmitriev88e9f6d2019-05-31 07:41:40 +030065 prx_flavor:
66 type: string
sgudz9c5699d2019-04-11 14:16:41 +030067 net_public:
68 type: string
69
Dennis Dmitrievcba86122019-05-24 13:41:46 +030070 foundation_image:
71 type: string
72
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +030073 bm_availability_zone:
74 type: string
75 vm_availability_zone:
76 type: string
77
sgudz9c5699d2019-04-11 14:16:41 +030078resources:
79 networks:
80 type: MCP::Networks
81 properties:
82 stack_name: { get_param: "OS::stack_name" }
83 env_name: { get_param: env_name }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +030084 subnets:
85 depends_on: [networks]
86 type: MCP::Subnets
87 properties:
88 stack_name: { get_param: "OS::stack_name" }
89 env_name: { get_param: env_name }
90 management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] }
91 control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] }
92 tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] }
93 external_net: { list_join: ['-', [ 'external_net', { get_param: env_name } ]] }
sgudz9c5699d2019-04-11 14:16:41 +030094
95 #flavors:
96 # type: MCP::Flavors
97
98 cfg01_node:
99 type: MCP::MasterNode
100 depends_on: [networks]
101 properties:
102 env_name: { get_param: env_name }
103 mcp_version: { get_param: mcp_version }
104 cfg01_flavor: { get_param: cfg_flavor }
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300105 availability_zone: { get_param: bm_availability_zone }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300106 management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] }
107 control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] }
108 tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] }
109 external_net: { list_join: ['-', [ 'external_net', { get_param: env_name } ]] }
sgudze6bff762019-05-23 18:15:49 +0300110 tenant_net_static_ip:
111 list_join:
112 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300113 - [ { get_attr: [subnets, tenant_net_prefix] }, '15' ]
sgudze6bff762019-05-23 18:15:49 +0300114 external_net_static_ip:
115 list_join:
116 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300117 - [ { get_attr: [subnets, external_net_prefix] }, '15' ]
sgudz9c5699d2019-04-11 14:16:41 +0300118 instance_name: cfg01
119 instance_domain: {get_param: instance_domain}
sgudz9c5699d2019-04-11 14:16:41 +0300120
121 control_cluster:
122 type: MCP::MultipleInstance
123 depends_on: [cfg01_node]
124 properties:
125 env_name: { get_param: env_name }
126 mcp_version: { get_param: mcp_version }
127 instance_domain: {get_param: instance_domain}
128 instance01_name: ctl01
129 instance02_name: ctl02
130 instance03_name: ctl03
131 instance_flavor: {get_param: ctl_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300132 availability_zone: { get_param: vm_availability_zone }
sgudz9c5699d2019-04-11 14:16:41 +0300133 underlay_userdata: { get_file: ./underlay-userdata.yaml }
134 instance01_control_net_static_ip:
135 list_join:
136 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300137 - [ { get_attr: [subnets, control_net_prefix] }, '11' ]
sgudz9c5699d2019-04-11 14:16:41 +0300138 instance02_control_net_static_ip:
139 list_join:
140 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300141 - [ { get_attr: [subnets, control_net_prefix] }, '12' ]
sgudz9c5699d2019-04-11 14:16:41 +0300142 instance03_control_net_static_ip:
143 list_join:
144 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300145 - [ { get_attr: [subnets, control_net_prefix] }, '13' ]
sgudze6bff762019-05-23 18:15:49 +0300146 instance01_tenant_net_static_ip:
147 list_join:
148 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300149 - [ { get_attr: [subnets, tenant_net_prefix] }, '11' ]
sgudze6bff762019-05-23 18:15:49 +0300150 instance02_tenant_net_static_ip:
151 list_join:
152 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300153 - [ { get_attr: [subnets, tenant_net_prefix] }, '12' ]
sgudze6bff762019-05-23 18:15:49 +0300154 instance03_tenant_net_static_ip:
155 list_join:
156 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300157 - [ { get_attr: [subnets, tenant_net_prefix] }, '13' ]
sgudze6bff762019-05-23 18:15:49 +0300158 instance01_external_net_static_ip:
159 list_join:
160 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300161 - [ { get_attr: [subnets, external_net_prefix] }, '11' ]
sgudze6bff762019-05-23 18:15:49 +0300162 instance02_external_net_static_ip:
163 list_join:
164 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300165 - [ { get_attr: [subnets, external_net_prefix] }, '12' ]
sgudze6bff762019-05-23 18:15:49 +0300166 instance03_external_net_static_ip:
167 list_join:
168 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300169 - [ { get_attr: [subnets, external_net_prefix] }, '13' ]
sgudz9c5699d2019-04-11 14:16:41 +0300170
171 instance_config_host: { get_attr: [cfg01_node, instance_address] }
172
173 openstack_database_cluster:
174 type: MCP::MultipleInstance
175 depends_on: [control_cluster]
176 properties:
177 env_name: { get_param: env_name }
178 mcp_version: { get_param: mcp_version }
179 instance_domain: {get_param: instance_domain}
180 instance01_name: dbs01
181 instance02_name: dbs02
182 instance03_name: dbs03
183 instance_flavor: {get_param: dbs_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300184 availability_zone: { get_param: vm_availability_zone }
sgudz9c5699d2019-04-11 14:16:41 +0300185 underlay_userdata: { get_file: ./underlay-userdata.yaml }
186 instance01_control_net_static_ip:
187 list_join:
188 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300189 - [ { get_attr: [subnets, control_net_prefix] }, '51' ]
sgudz9c5699d2019-04-11 14:16:41 +0300190 instance02_control_net_static_ip:
191 list_join:
192 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300193 - [ { get_attr: [subnets, control_net_prefix] }, '52' ]
sgudz9c5699d2019-04-11 14:16:41 +0300194 instance03_control_net_static_ip:
195 list_join:
196 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300197 - [ { get_attr: [subnets, control_net_prefix] }, '53' ]
sgudze6bff762019-05-23 18:15:49 +0300198 instance01_tenant_net_static_ip:
199 list_join:
200 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300201 - [ { get_attr: [subnets, tenant_net_prefix] }, '51' ]
sgudze6bff762019-05-23 18:15:49 +0300202 instance02_tenant_net_static_ip:
203 list_join:
204 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300205 - [ { get_attr: [subnets, tenant_net_prefix] }, '52' ]
sgudze6bff762019-05-23 18:15:49 +0300206 instance03_tenant_net_static_ip:
207 list_join:
208 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300209 - [ { get_attr: [subnets, tenant_net_prefix] }, '53' ]
sgudze6bff762019-05-23 18:15:49 +0300210 instance01_external_net_static_ip:
211 list_join:
212 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300213 - [ { get_attr: [subnets, external_net_prefix] }, '51' ]
sgudze6bff762019-05-23 18:15:49 +0300214 instance02_external_net_static_ip:
215 list_join:
216 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300217 - [ { get_attr: [subnets, external_net_prefix] }, '52' ]
sgudze6bff762019-05-23 18:15:49 +0300218 instance03_external_net_static_ip:
219 list_join:
220 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300221 - [ { get_attr: [subnets, external_net_prefix] }, '53' ]
sgudze6bff762019-05-23 18:15:49 +0300222
sgudz9c5699d2019-04-11 14:16:41 +0300223 instance_config_host: { get_attr: [cfg01_node, instance_address] }
224
225 fake_kvm_cluster:
226 type: MCP::MultipleInstance
227 depends_on: [cfg01_node]
228 properties:
229 env_name: { get_param: env_name }
230 mcp_version: { get_param: mcp_version }
231 instance_domain: {get_param: instance_domain}
232 instance01_name: kvm01
233 instance02_name: kvm02
234 instance03_name: kvm03
235 instance_flavor: {get_param: kvm_fake_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300236 availability_zone: { get_param: vm_availability_zone }
sgudz9c5699d2019-04-11 14:16:41 +0300237 underlay_userdata: { get_file: ./underlay-userdata.yaml }
238 instance01_control_net_static_ip:
239 list_join:
240 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300241 - [ { get_attr: [subnets, control_net_prefix] }, '241' ]
sgudz9c5699d2019-04-11 14:16:41 +0300242 instance02_control_net_static_ip:
243 list_join:
244 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300245 - [ { get_attr: [subnets, control_net_prefix] }, '242' ]
sgudz9c5699d2019-04-11 14:16:41 +0300246 instance03_control_net_static_ip:
247 list_join:
248 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300249 - [ { get_attr: [subnets, control_net_prefix] }, '243' ]
sgudze6bff762019-05-23 18:15:49 +0300250 instance01_tenant_net_static_ip:
251 list_join:
252 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300253 - [ { get_attr: [subnets, tenant_net_prefix] }, '241' ]
sgudze6bff762019-05-23 18:15:49 +0300254 instance02_tenant_net_static_ip:
255 list_join:
256 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300257 - [ { get_attr: [subnets, tenant_net_prefix] }, '242' ]
sgudze6bff762019-05-23 18:15:49 +0300258 instance03_tenant_net_static_ip:
259 list_join:
260 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300261 - [ { get_attr: [subnets, tenant_net_prefix] }, '243' ]
sgudze6bff762019-05-23 18:15:49 +0300262 instance01_external_net_static_ip:
263 list_join:
264 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300265 - [ { get_attr: [subnets, external_net_prefix] }, '241' ]
sgudze6bff762019-05-23 18:15:49 +0300266 instance02_external_net_static_ip:
267 list_join:
268 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300269 - [ { get_attr: [subnets, external_net_prefix] }, '242' ]
sgudze6bff762019-05-23 18:15:49 +0300270 instance03_external_net_static_ip:
271 list_join:
272 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300273 - [ { get_attr: [subnets, external_net_prefix] }, '243' ]
sgudz9c5699d2019-04-11 14:16:41 +0300274
275 instance_config_host: { get_attr: [cfg01_node, instance_address] }
276
277 openstack_message_queue_cluster:
278 type: MCP::MultipleInstance
279 depends_on: [openstack_database_cluster]
280 properties:
281 env_name: { get_param: env_name }
282 mcp_version: { get_param: mcp_version }
283 instance_domain: {get_param: instance_domain}
284 instance01_name: msg01
285 instance02_name: msg02
286 instance03_name: msg03
287 instance_flavor: {get_param: msg_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300288 availability_zone: { get_param: vm_availability_zone }
sgudz9c5699d2019-04-11 14:16:41 +0300289 underlay_userdata: { get_file: ./underlay-userdata.yaml }
290 instance01_control_net_static_ip:
291 list_join:
292 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300293 - [ { get_attr: [subnets, control_net_prefix] }, '41' ]
sgudz9c5699d2019-04-11 14:16:41 +0300294 instance02_control_net_static_ip:
295 list_join:
296 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300297 - [ { get_attr: [subnets, control_net_prefix] }, '42' ]
sgudz9c5699d2019-04-11 14:16:41 +0300298 instance03_control_net_static_ip:
299 list_join:
300 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300301 - [ { get_attr: [subnets, control_net_prefix] }, '43' ]
sgudze6bff762019-05-23 18:15:49 +0300302 instance01_tenant_net_static_ip:
303 list_join:
304 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300305 - [ { get_attr: [subnets, tenant_net_prefix] }, '41' ]
sgudze6bff762019-05-23 18:15:49 +0300306 instance02_tenant_net_static_ip:
307 list_join:
308 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300309 - [ { get_attr: [subnets, tenant_net_prefix] }, '42' ]
sgudze6bff762019-05-23 18:15:49 +0300310 instance03_tenant_net_static_ip:
311 list_join:
312 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300313 - [ { get_attr: [subnets, tenant_net_prefix] }, '43' ]
sgudze6bff762019-05-23 18:15:49 +0300314 instance01_external_net_static_ip:
315 list_join:
316 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300317 - [ { get_attr: [subnets, external_net_prefix] }, '41' ]
sgudze6bff762019-05-23 18:15:49 +0300318 instance02_external_net_static_ip:
319 list_join:
320 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300321 - [ { get_attr: [subnets, external_net_prefix] }, '42' ]
sgudze6bff762019-05-23 18:15:49 +0300322 instance03_external_net_static_ip:
323 list_join:
324 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300325 - [ { get_attr: [subnets, external_net_prefix] }, '43' ]
sgudze6bff762019-05-23 18:15:49 +0300326
sgudz9c5699d2019-04-11 14:16:41 +0300327 instance_config_host: { get_attr: [cfg01_node, instance_address] }
328
329 cicd_cluster:
330 type: MCP::MultipleInstance
331 depends_on: [cfg01_node]
332 properties:
333 env_name: { get_param: env_name }
334 mcp_version: { get_param: mcp_version }
335 instance_domain: {get_param: instance_domain}
336 instance01_name: cid01
337 instance02_name: cid02
338 instance03_name: cid03
339 instance_flavor: {get_param: cid_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300340 availability_zone: { get_param: vm_availability_zone }
sgudz9c5699d2019-04-11 14:16:41 +0300341 underlay_userdata: { get_file: ./underlay-userdata.yaml }
342 instance01_control_net_static_ip:
343 list_join:
344 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300345 - [ { get_attr: [subnets, control_net_prefix] }, '91' ]
sgudz9c5699d2019-04-11 14:16:41 +0300346 instance02_control_net_static_ip:
347 list_join:
348 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300349 - [ { get_attr: [subnets, control_net_prefix] }, '92' ]
sgudz9c5699d2019-04-11 14:16:41 +0300350 instance03_control_net_static_ip:
351 list_join:
352 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300353 - [ { get_attr: [subnets, control_net_prefix] }, '93' ]
sgudze6bff762019-05-23 18:15:49 +0300354 instance01_tenant_net_static_ip:
355 list_join:
356 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300357 - [ { get_attr: [subnets, tenant_net_prefix] }, '91' ]
sgudze6bff762019-05-23 18:15:49 +0300358 instance02_tenant_net_static_ip:
359 list_join:
360 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300361 - [ { get_attr: [subnets, tenant_net_prefix] }, '92' ]
sgudze6bff762019-05-23 18:15:49 +0300362 instance03_tenant_net_static_ip:
363 list_join:
364 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300365 - [ { get_attr: [subnets, tenant_net_prefix] }, '93' ]
sgudze6bff762019-05-23 18:15:49 +0300366 instance01_external_net_static_ip:
367 list_join:
368 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300369 - [ { get_attr: [subnets, external_net_prefix] }, '91' ]
sgudze6bff762019-05-23 18:15:49 +0300370 instance02_external_net_static_ip:
371 list_join:
372 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300373 - [ { get_attr: [subnets, external_net_prefix] }, '92' ]
sgudze6bff762019-05-23 18:15:49 +0300374 instance03_external_net_static_ip:
375 list_join:
376 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300377 - [ { get_attr: [subnets, external_net_prefix] }, '93' ]
sgudz9c5699d2019-04-11 14:16:41 +0300378
379 instance_config_host: { get_attr: [cfg01_node, instance_address] }
380
381 contrail_ntw_cluster:
382 type: MCP::MultipleInstance
383 depends_on: [openstack_message_queue_cluster]
384 properties:
385 env_name: { get_param: env_name }
386 mcp_version: { get_param: mcp_version }
387 instance_domain: {get_param: instance_domain}
388 instance01_name: ntw01
389 instance02_name: ntw02
390 instance03_name: ntw03
391 instance_flavor: {get_param: ntw_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300392 availability_zone: { get_param: vm_availability_zone }
sgudz9c5699d2019-04-11 14:16:41 +0300393 underlay_userdata: { get_file: ./underlay-userdata.yaml }
394 instance01_control_net_static_ip:
395 list_join:
396 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300397 - [ { get_attr: [subnets, control_net_prefix] }, '21' ]
sgudz9c5699d2019-04-11 14:16:41 +0300398 instance02_control_net_static_ip:
399 list_join:
400 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300401 - [ { get_attr: [subnets, control_net_prefix] }, '22' ]
sgudz9c5699d2019-04-11 14:16:41 +0300402 instance03_control_net_static_ip:
403 list_join:
404 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300405 - [ { get_attr: [subnets, control_net_prefix] }, '23' ]
sgudze6bff762019-05-23 18:15:49 +0300406 instance01_tenant_net_static_ip:
407 list_join:
408 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300409 - [ { get_attr: [subnets, tenant_net_prefix] }, '21' ]
sgudze6bff762019-05-23 18:15:49 +0300410 instance02_tenant_net_static_ip:
411 list_join:
412 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300413 - [ { get_attr: [subnets, tenant_net_prefix] }, '22' ]
sgudze6bff762019-05-23 18:15:49 +0300414 instance03_tenant_net_static_ip:
415 list_join:
416 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300417 - [ { get_attr: [subnets, tenant_net_prefix] }, '23' ]
sgudze6bff762019-05-23 18:15:49 +0300418 instance01_external_net_static_ip:
419 list_join:
420 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300421 - [ { get_attr: [subnets, external_net_prefix] }, '21' ]
sgudze6bff762019-05-23 18:15:49 +0300422 instance02_external_net_static_ip:
423 list_join:
424 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300425 - [ { get_attr: [subnets, external_net_prefix] }, '22' ]
sgudze6bff762019-05-23 18:15:49 +0300426 instance03_external_net_static_ip:
427 list_join:
428 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300429 - [ { get_attr: [subnets, external_net_prefix] }, '23' ]
sgudze6bff762019-05-23 18:15:49 +0300430
sgudz9c5699d2019-04-11 14:16:41 +0300431 instance_config_host: { get_attr: [cfg01_node, instance_address] }
432
433 contrail_nal_cluster:
434 type: MCP::MultipleInstance
435 depends_on: [contrail_ntw_cluster]
436 properties:
437 env_name: { get_param: env_name }
438 mcp_version: { get_param: mcp_version }
439 instance_domain: {get_param: instance_domain}
440 instance01_name: nal01
441 instance02_name: nal02
442 instance03_name: nal03
443 instance_flavor: {get_param: nal_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300444 availability_zone: { get_param: vm_availability_zone }
sgudz9c5699d2019-04-11 14:16:41 +0300445 underlay_userdata: { get_file: ./underlay-userdata.yaml }
446 instance01_control_net_static_ip:
447 list_join:
448 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300449 - [ { get_attr: [subnets, control_net_prefix] }, '31' ]
sgudz9c5699d2019-04-11 14:16:41 +0300450 instance02_control_net_static_ip:
451 list_join:
452 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300453 - [ { get_attr: [subnets, control_net_prefix] }, '32' ]
sgudz9c5699d2019-04-11 14:16:41 +0300454 instance03_control_net_static_ip:
455 list_join:
456 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300457 - [ { get_attr: [subnets, control_net_prefix] }, '33' ]
sgudze6bff762019-05-23 18:15:49 +0300458 instance01_tenant_net_static_ip:
459 list_join:
460 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300461 - [ { get_attr: [subnets, tenant_net_prefix] }, '31' ]
sgudze6bff762019-05-23 18:15:49 +0300462 instance02_tenant_net_static_ip:
463 list_join:
464 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300465 - [ { get_attr: [subnets, tenant_net_prefix] }, '32' ]
sgudze6bff762019-05-23 18:15:49 +0300466 instance03_tenant_net_static_ip:
467 list_join:
468 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300469 - [ { get_attr: [subnets, tenant_net_prefix] }, '33' ]
sgudze6bff762019-05-23 18:15:49 +0300470 instance01_external_net_static_ip:
471 list_join:
472 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300473 - [ { get_attr: [subnets, external_net_prefix] }, '31' ]
sgudze6bff762019-05-23 18:15:49 +0300474 instance02_external_net_static_ip:
475 list_join:
476 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300477 - [ { get_attr: [subnets, external_net_prefix] }, '32' ]
sgudze6bff762019-05-23 18:15:49 +0300478 instance03_external_net_static_ip:
479 list_join:
480 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300481 - [ { get_attr: [subnets, external_net_prefix] }, '33' ]
sgudze6bff762019-05-23 18:15:49 +0300482
sgudz9c5699d2019-04-11 14:16:41 +0300483 instance_config_host: { get_attr: [cfg01_node, instance_address] }
484
485 stacklight_monitor_cluster:
486 type: MCP::MultipleInstance
487 depends_on: [openstack_message_queue_cluster]
488 properties:
489 env_name: { get_param: env_name }
490 mcp_version: { get_param: mcp_version }
491 instance_domain: {get_param: instance_domain}
492 instance01_name: mon01
493 instance02_name: mon02
494 instance03_name: mon03
495 instance_flavor: {get_param: mon_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300496 availability_zone: { get_param: vm_availability_zone }
sgudz9c5699d2019-04-11 14:16:41 +0300497 underlay_userdata: { get_file: ./underlay-userdata.yaml }
498 instance01_control_net_static_ip:
499 list_join:
500 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300501 - [ { get_attr: [subnets, control_net_prefix] }, '71' ]
sgudz9c5699d2019-04-11 14:16:41 +0300502 instance02_control_net_static_ip:
503 list_join:
504 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300505 - [ { get_attr: [subnets, control_net_prefix] }, '72' ]
sgudz9c5699d2019-04-11 14:16:41 +0300506 instance03_control_net_static_ip:
507 list_join:
508 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300509 - [ { get_attr: [subnets, control_net_prefix] }, '73' ]
sgudze6bff762019-05-23 18:15:49 +0300510 instance01_tenant_net_static_ip:
511 list_join:
512 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300513 - [ { get_attr: [subnets, tenant_net_prefix] }, '71' ]
sgudze6bff762019-05-23 18:15:49 +0300514 instance02_tenant_net_static_ip:
515 list_join:
516 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300517 - [ { get_attr: [subnets, tenant_net_prefix] }, '72' ]
sgudze6bff762019-05-23 18:15:49 +0300518 instance03_tenant_net_static_ip:
519 list_join:
520 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300521 - [ { get_attr: [subnets, tenant_net_prefix] }, '73' ]
sgudze6bff762019-05-23 18:15:49 +0300522 instance01_external_net_static_ip:
523 list_join:
524 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300525 - [ { get_attr: [subnets, external_net_prefix] }, '71' ]
sgudze6bff762019-05-23 18:15:49 +0300526 instance02_external_net_static_ip:
527 list_join:
528 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300529 - [ { get_attr: [subnets, external_net_prefix] }, '72' ]
sgudze6bff762019-05-23 18:15:49 +0300530 instance03_external_net_static_ip:
531 list_join:
532 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300533 - [ { get_attr: [subnets, external_net_prefix] }, '73' ]
sgudze6bff762019-05-23 18:15:49 +0300534
sgudz9c5699d2019-04-11 14:16:41 +0300535 instance_config_host: { get_attr: [cfg01_node, instance_address] }
536
537 stacklight_log_cluster:
538 type: MCP::MultipleInstance
539 depends_on: [stacklight_monitor_cluster]
540 properties:
541 env_name: { get_param: env_name }
542 mcp_version: { get_param: mcp_version }
543 instance_domain: {get_param: instance_domain}
544 instance01_name: log01
545 instance02_name: log02
546 instance03_name: log03
547 instance_flavor: {get_param: log_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300548 availability_zone: { get_param: vm_availability_zone }
sgudz9c5699d2019-04-11 14:16:41 +0300549 underlay_userdata: { get_file: ./underlay-userdata.yaml }
550 instance01_control_net_static_ip:
551 list_join:
552 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300553 - [ { get_attr: [subnets, control_net_prefix] }, '61' ]
sgudz9c5699d2019-04-11 14:16:41 +0300554 instance02_control_net_static_ip:
555 list_join:
556 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300557 - [ { get_attr: [subnets, control_net_prefix] }, '62' ]
sgudz9c5699d2019-04-11 14:16:41 +0300558 instance03_control_net_static_ip:
559 list_join:
560 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300561 - [ { get_attr: [subnets, control_net_prefix] }, '63' ]
sgudze6bff762019-05-23 18:15:49 +0300562 instance01_tenant_net_static_ip:
563 list_join:
564 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300565 - [ { get_attr: [subnets, tenant_net_prefix] }, '61' ]
sgudze6bff762019-05-23 18:15:49 +0300566 instance02_tenant_net_static_ip:
567 list_join:
568 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300569 - [ { get_attr: [subnets, tenant_net_prefix] }, '62' ]
sgudze6bff762019-05-23 18:15:49 +0300570 instance03_tenant_net_static_ip:
571 list_join:
572 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300573 - [ { get_attr: [subnets, tenant_net_prefix] }, '63' ]
sgudze6bff762019-05-23 18:15:49 +0300574 instance01_external_net_static_ip:
575 list_join:
576 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300577 - [ { get_attr: [subnets, external_net_prefix] }, '61' ]
sgudze6bff762019-05-23 18:15:49 +0300578 instance02_external_net_static_ip:
579 list_join:
580 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300581 - [ { get_attr: [subnets, external_net_prefix] }, '62' ]
sgudze6bff762019-05-23 18:15:49 +0300582 instance03_external_net_static_ip:
583 list_join:
584 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300585 - [ { get_attr: [subnets, external_net_prefix] }, '63' ]
sgudze6bff762019-05-23 18:15:49 +0300586
sgudz9c5699d2019-04-11 14:16:41 +0300587 instance_config_host: { get_attr: [cfg01_node, instance_address] }
588
589 stacklight_mtr_cluster:
590 type: MCP::MultipleInstance
591 depends_on: [stacklight_log_cluster]
592 properties:
593 env_name: { get_param: env_name }
594 mcp_version: { get_param: mcp_version }
595 instance_domain: {get_param: instance_domain}
596 instance01_name: mtr01
597 instance02_name: mtr02
598 instance03_name: mtr03
599 instance_flavor: {get_param: mtr_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300600 availability_zone: { get_param: vm_availability_zone }
sgudz9c5699d2019-04-11 14:16:41 +0300601 underlay_userdata: { get_file: ./underlay-userdata.yaml }
602 instance01_control_net_static_ip:
603 list_join:
604 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300605 - [ { get_attr: [subnets, control_net_prefix] }, '86' ]
sgudz9c5699d2019-04-11 14:16:41 +0300606 instance02_control_net_static_ip:
607 list_join:
608 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300609 - [ { get_attr: [subnets, control_net_prefix] }, '87' ]
sgudz9c5699d2019-04-11 14:16:41 +0300610 instance03_control_net_static_ip:
611 list_join:
612 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300613 - [ { get_attr: [subnets, control_net_prefix] }, '88' ]
sgudze6bff762019-05-23 18:15:49 +0300614 instance01_tenant_net_static_ip:
615 list_join:
616 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300617 - [ { get_attr: [subnets, tenant_net_prefix] }, '86' ]
sgudze6bff762019-05-23 18:15:49 +0300618 instance02_tenant_net_static_ip:
619 list_join:
620 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300621 - [ { get_attr: [subnets, tenant_net_prefix] }, '87' ]
sgudze6bff762019-05-23 18:15:49 +0300622 instance03_tenant_net_static_ip:
623 list_join:
624 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300625 - [ { get_attr: [subnets, tenant_net_prefix] }, '88' ]
sgudze6bff762019-05-23 18:15:49 +0300626 instance01_external_net_static_ip:
627 list_join:
628 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300629 - [ { get_attr: [subnets, external_net_prefix] }, '86' ]
sgudze6bff762019-05-23 18:15:49 +0300630 instance02_external_net_static_ip:
631 list_join:
632 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300633 - [ { get_attr: [subnets, external_net_prefix] }, '87' ]
sgudze6bff762019-05-23 18:15:49 +0300634 instance03_external_net_static_ip:
635 list_join:
636 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300637 - [ { get_attr: [subnets, external_net_prefix] }, '88' ]
sgudze6bff762019-05-23 18:15:49 +0300638
sgudz9c5699d2019-04-11 14:16:41 +0300639 instance_config_host: { get_attr: [cfg01_node, instance_address] }
640
sgudz47545942019-04-25 19:34:56 +0300641 ceph_cmn_cluster:
642 type: MCP::MultipleInstance
643 depends_on: [cfg01_node]
644 properties:
645 env_name: { get_param: env_name }
646 mcp_version: { get_param: mcp_version }
647 instance_domain: {get_param: instance_domain}
648 instance01_name: cmn01
649 instance02_name: cmn02
650 instance03_name: cmn03
651 instance_flavor: {get_param: cmn_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300652 availability_zone: { get_param: vm_availability_zone }
sgudz47545942019-04-25 19:34:56 +0300653 underlay_userdata: { get_file: ./underlay-userdata.yaml }
654 instance01_control_net_static_ip:
655 list_join:
656 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300657 - [ { get_attr: [subnets, control_net_prefix] }, '66' ]
sgudz47545942019-04-25 19:34:56 +0300658 instance02_control_net_static_ip:
659 list_join:
660 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300661 - [ { get_attr: [subnets, control_net_prefix] }, '67' ]
sgudz47545942019-04-25 19:34:56 +0300662 instance03_control_net_static_ip:
663 list_join:
664 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300665 - [ { get_attr: [subnets, control_net_prefix] }, '68' ]
sgudze6bff762019-05-23 18:15:49 +0300666 instance01_tenant_net_static_ip:
667 list_join:
668 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300669 - [ { get_attr: [subnets, tenant_net_prefix] }, '66' ]
sgudze6bff762019-05-23 18:15:49 +0300670 instance02_tenant_net_static_ip:
671 list_join:
672 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300673 - [ { get_attr: [subnets, tenant_net_prefix] }, '67' ]
sgudze6bff762019-05-23 18:15:49 +0300674 instance03_tenant_net_static_ip:
675 list_join:
676 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300677 - [ { get_attr: [subnets, tenant_net_prefix] }, '68' ]
sgudze6bff762019-05-23 18:15:49 +0300678 instance01_external_net_static_ip:
679 list_join:
680 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300681 - [ { get_attr: [subnets, external_net_prefix] }, '66' ]
sgudze6bff762019-05-23 18:15:49 +0300682 instance02_external_net_static_ip:
683 list_join:
684 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300685 - [ { get_attr: [subnets, external_net_prefix] }, '67' ]
sgudze6bff762019-05-23 18:15:49 +0300686 instance03_external_net_static_ip:
687 list_join:
688 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300689 - [ { get_attr: [subnets, external_net_prefix] }, '68' ]
sgudz47545942019-04-25 19:34:56 +0300690 instance_config_host: { get_attr: [cfg01_node, instance_address] }
691
692 ceph_rgw_cluster:
693 type: MCP::MultipleInstance
694 depends_on: [cfg01_node]
695 properties:
696 env_name: { get_param: env_name }
697 mcp_version: { get_param: mcp_version }
698 instance_domain: {get_param: instance_domain}
699 instance01_name: rgw01
700 instance02_name: rgw02
701 instance03_name: rgw03
702 instance_flavor: {get_param: rgw_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300703 availability_zone: { get_param: vm_availability_zone }
sgudz47545942019-04-25 19:34:56 +0300704 underlay_userdata: { get_file: ./underlay-userdata.yaml }
705 instance01_control_net_static_ip:
706 list_join:
707 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300708 - [ { get_attr: [subnets, control_net_prefix] }, '76' ]
sgudz47545942019-04-25 19:34:56 +0300709 instance02_control_net_static_ip:
710 list_join:
711 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300712 - [ { get_attr: [subnets, control_net_prefix] }, '77' ]
sgudz47545942019-04-25 19:34:56 +0300713 instance03_control_net_static_ip:
714 list_join:
715 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300716 - [ { get_attr: [subnets, control_net_prefix] }, '78' ]
sgudze6bff762019-05-23 18:15:49 +0300717 instance01_tenant_net_static_ip:
718 list_join:
719 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300720 - [ { get_attr: [subnets, tenant_net_prefix] }, '76' ]
sgudze6bff762019-05-23 18:15:49 +0300721 instance02_tenant_net_static_ip:
722 list_join:
723 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300724 - [ { get_attr: [subnets, tenant_net_prefix] }, '77' ]
sgudze6bff762019-05-23 18:15:49 +0300725 instance03_tenant_net_static_ip:
726 list_join:
727 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300728 - [ { get_attr: [subnets, tenant_net_prefix] }, '78' ]
sgudze6bff762019-05-23 18:15:49 +0300729 instance01_external_net_static_ip:
730 list_join:
731 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300732 - [ { get_attr: [subnets, external_net_prefix] }, '76' ]
sgudze6bff762019-05-23 18:15:49 +0300733 instance02_external_net_static_ip:
734 list_join:
735 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300736 - [ { get_attr: [subnets, external_net_prefix] }, '77' ]
sgudze6bff762019-05-23 18:15:49 +0300737 instance03_external_net_static_ip:
738 list_join:
739 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300740 - [ { get_attr: [subnets, external_net_prefix] }, '78' ]
sgudz47545942019-04-25 19:34:56 +0300741 instance_config_host: { get_attr: [cfg01_node, instance_address] }
742
743 ceph_osd_cluster:
744 type: MCP::MultipleInstance
745 depends_on: [cfg01_node]
746 properties:
747 env_name: { get_param: env_name }
748 mcp_version: { get_param: mcp_version }
749 instance_domain: {get_param: instance_domain}
750 instance01_name: osd001
751 instance02_name: osd002
752 instance03_name: osd003
753 instance_flavor: {get_param: osd_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300754 availability_zone: { get_param: vm_availability_zone }
sgudz47545942019-04-25 19:34:56 +0300755 underlay_userdata: { get_file: ./underlay-userdata.yaml }
756 instance01_control_net_static_ip:
757 list_join:
758 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300759 - [ { get_attr: [subnets, control_net_prefix] }, '201' ]
sgudz47545942019-04-25 19:34:56 +0300760 instance02_control_net_static_ip:
761 list_join:
762 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300763 - [ { get_attr: [subnets, control_net_prefix] }, '202' ]
sgudz47545942019-04-25 19:34:56 +0300764 instance03_control_net_static_ip:
765 list_join:
766 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300767 - [ { get_attr: [subnets, control_net_prefix] }, '203' ]
sgudze6bff762019-05-23 18:15:49 +0300768 instance01_tenant_net_static_ip:
769 list_join:
770 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300771 - [ { get_attr: [subnets, tenant_net_prefix] }, '201' ]
sgudze6bff762019-05-23 18:15:49 +0300772 instance02_tenant_net_static_ip:
773 list_join:
774 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300775 - [ { get_attr: [subnets, tenant_net_prefix] }, '202' ]
sgudze6bff762019-05-23 18:15:49 +0300776 instance03_tenant_net_static_ip:
777 list_join:
778 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300779 - [ { get_attr: [subnets, tenant_net_prefix] }, '203' ]
sgudze6bff762019-05-23 18:15:49 +0300780 instance01_external_net_static_ip:
781 list_join:
782 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300783 - [ { get_attr: [subnets, external_net_prefix] }, '201' ]
sgudze6bff762019-05-23 18:15:49 +0300784 instance02_external_net_static_ip:
785 list_join:
786 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300787 - [ { get_attr: [subnets, external_net_prefix] }, '202' ]
sgudze6bff762019-05-23 18:15:49 +0300788 instance03_external_net_static_ip:
789 list_join:
790 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300791 - [ { get_attr: [subnets, external_net_prefix] }, '203' ]
sgudze6bff762019-05-23 18:15:49 +0300792
sgudz47545942019-04-25 19:34:56 +0300793 instance_config_host: { get_attr: [cfg01_node, instance_address] }
794
sgudz9c5699d2019-04-11 14:16:41 +0300795 prx01_virtual:
796 type: MCP::SingleInstance
797 depends_on: [control_cluster]
798 properties:
799 env_name: { get_param: env_name }
800 mcp_version: { get_param: mcp_version }
801 instance_domain: {get_param: instance_domain}
802 instance_name: prx01
Oleksii Butenko5aa4b6c2019-05-30 13:52:05 +0300803 instance_flavor: {get_param: prx_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300804 availability_zone: { get_param: vm_availability_zone }
sgudz9c5699d2019-04-11 14:16:41 +0300805 underlay_userdata: { get_file: ./underlay-userdata.yaml }
806 control_net_static_ip:
807 list_join:
808 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300809 - [ { get_attr: [subnets, control_net_prefix] }, '81' ]
sgudze6bff762019-05-23 18:15:49 +0300810 tenant_net_static_ip:
811 list_join:
812 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300813 - [ { get_attr: [subnets, tenant_net_prefix] }, '81' ]
sgudze6bff762019-05-23 18:15:49 +0300814 external_net_static_ip:
815 list_join:
816 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300817 - [ { get_attr: [subnets, external_net_prefix] }, '81' ]
sgudz9c5699d2019-04-11 14:16:41 +0300818
819 instance_config_host: { get_attr: [cfg01_node, instance_address] }
820
Oleksii Butenko5aa4b6c2019-05-30 13:52:05 +0300821 prx02_virtual:
822 type: MCP::SingleInstance
823 depends_on: [control_cluster]
824 properties:
825 env_name: { get_param: env_name }
826 mcp_version: { get_param: mcp_version }
827 instance_domain: {get_param: instance_domain}
828 instance_name: prx02
829 instance_flavor: {get_param: prx_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300830 availability_zone: { get_param: vm_availability_zone }
Oleksii Butenko5aa4b6c2019-05-30 13:52:05 +0300831 underlay_userdata: { get_file: ./underlay-userdata.yaml }
832 control_net_static_ip:
833 list_join:
834 - '.'
835 - [ { get_attr: [subnets, control_net_prefix] }, '82' ]
836 tenant_net_static_ip:
837 list_join:
838 - '.'
839 - [ { get_attr: [subnets, tenant_net_prefix] }, '82' ]
840 external_net_static_ip:
841 list_join:
842 - '.'
843 - [ { get_attr: [subnets, external_net_prefix] }, '82' ]
844
845 instance_config_host: { get_attr: [cfg01_node, instance_address] }
sgudz9c5699d2019-04-11 14:16:41 +0300846 cmp001_virtual:
847 type: MCP::Compute
848 depends_on: [cfg01_node]
849 properties:
850 env_name: { get_param: env_name }
851 mcp_version: { get_param: mcp_version }
852 instance_domain: {get_param: instance_domain}
853 instance_name: cmp001
854 instance_flavor: {get_param: cmp_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300855 availability_zone: { get_param: vm_availability_zone }
sgudz9c5699d2019-04-11 14:16:41 +0300856 underlay_userdata: { get_file: ./underlay-userdata.yaml }
857 control_net_static_ip:
858 list_join:
859 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300860 - [ { get_attr: [subnets, control_net_prefix] }, '101' ]
sgudze6bff762019-05-23 18:15:49 +0300861 tenant_net_static_ip:
862 list_join:
863 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300864 - [ { get_attr: [subnets, tenant_net_prefix] }, '101' ]
sgudze6bff762019-05-23 18:15:49 +0300865 external_net_static_ip:
866 list_join:
867 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300868 - [ { get_attr: [subnets, external_net_prefix] }, '101' ]
sgudze6bff762019-05-23 18:15:49 +0300869
sgudz9c5699d2019-04-11 14:16:41 +0300870 instance_config_host: { get_attr: [cfg01_node, instance_address] }
871
872 cmp002_virtual:
873 type: MCP::Compute
874 depends_on: [cfg01_node]
875 properties:
876 env_name: { get_param: env_name }
877 mcp_version: { get_param: mcp_version }
878 instance_domain: {get_param: instance_domain}
879 instance_name: cmp002
880 instance_flavor: {get_param: cmp_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300881 availability_zone: { get_param: vm_availability_zone }
sgudz9c5699d2019-04-11 14:16:41 +0300882 underlay_userdata: { get_file: ./underlay-userdata.yaml }
883 control_net_static_ip:
884 list_join:
885 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300886 - [ { get_attr: [subnets, control_net_prefix] }, '102' ]
sgudze6bff762019-05-23 18:15:49 +0300887 tenant_net_static_ip:
888 list_join:
889 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300890 - [ { get_attr: [subnets, tenant_net_prefix] }, '102' ]
sgudze6bff762019-05-23 18:15:49 +0300891 external_net_static_ip:
892 list_join:
893 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300894 - [ { get_attr: [subnets, external_net_prefix] }, '102' ]
sgudze6bff762019-05-23 18:15:49 +0300895
sgudz9c5699d2019-04-11 14:16:41 +0300896 instance_config_host: { get_attr: [cfg01_node, instance_address] }
897
898 foundation_node:
899 type: MCP::FoundationNode
900 depends_on: [networks]
901 properties:
902 env_name: { get_param: env_name }
903 mcp_version: { get_param: mcp_version }
904 instance_domain: {get_param: instance_domain}
905 instance_name: foundation
Dennis Dmitrievcba86122019-05-24 13:41:46 +0300906 instance_image: { get_param: foundation_image }
sgudz9c5699d2019-04-11 14:16:41 +0300907 instance_flavor: {get_param: foundation_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300908 availability_zone: { get_param: bm_availability_zone }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300909 management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] }
910 control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] }
911 tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] }
912 external_net: { list_join: ['-', [ 'external_net', { get_param: env_name } ]] }
sgudz9c5699d2019-04-11 14:16:41 +0300913 underlay_userdata: { get_file: ./underlay--user-data-foundation.yaml }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300914 management_net_static_ip:
915 list_join:
916 - '.'
917 - [ { get_attr: [subnets, management_net_prefix] }, '5' ]
sgudz9c5699d2019-04-11 14:16:41 +0300918 control_net_static_ip:
919 list_join:
920 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300921 - [ { get_attr: [subnets, control_net_prefix] }, '5' ]
sgudze6bff762019-05-23 18:15:49 +0300922 tenant_net_static_ip:
923 list_join:
924 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300925 - [ { get_attr: [subnets, tenant_net_prefix] }, '5' ]
sgudze6bff762019-05-23 18:15:49 +0300926 external_net_static_ip:
927 list_join:
928 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300929 - [ { get_attr: [subnets, external_net_prefix] }, '5' ]
sgudz9c5699d2019-04-11 14:16:41 +0300930 instance_config_host: { get_attr: [cfg01_node, instance_address] }
931
Andrew Baraniuke8ddc242019-05-14 18:20:54 +0300932 vsrx_node:
933 type: MCP::VsrxNode
934 depends_on: [cfg01_node]
935 properties:
936 env_name: { get_param: env_name }
937 mcp_version: { get_param: mcp_version }
938 instance_domain: {get_param: instance_domain}
939 instance_name: vsrx
940 instance_flavor: {get_param: vsrx_flavor}
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300941 availability_zone: { get_param: vm_availability_zone }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300942 management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] }
943 control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] }
944 tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] }
945 external_net: { list_join: ['-', [ 'external_net', { get_param: env_name } ]] }
Andrew Baraniuke8ddc242019-05-14 18:20:54 +0300946 instance_image: system_vsrx-12.1X46-D20.5
Andrew Baraniuke8ddc242019-05-14 18:20:54 +0300947 control_net_static_ip:
948 list_join:
949 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300950 - [ { get_attr: [subnets, control_net_prefix] }, '220' ]
Andrew Baraniuke8ddc242019-05-14 18:20:54 +0300951 tenant_net_static_ip:
952 list_join:
953 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300954 - [ { get_attr: [subnets, tenant_net_prefix] }, '220' ]
Andrew Baraniuke8ddc242019-05-14 18:20:54 +0300955 external_net_static_ip:
956 list_join:
957 - '.'
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300958 - [ { get_attr: [subnets, external_net_prefix] }, '220' ]
Andrew Baraniuke8ddc242019-05-14 18:20:54 +0300959 instance_config_host: { get_attr: [cfg01_node, instance_address] }
960
sgudz9c5699d2019-04-11 14:16:41 +0300961outputs:
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300962 foundation_public_ip:
sgudz9c5699d2019-04-11 14:16:41 +0300963 description: foundation node IP address (floating) from external network
964 value:
965 get_attr:
966 - foundation_node
967 - instance_floating_address
968...