610b7dd1aaa799a99f93370f14f15f3b2bb22db6
[sdc.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0_0\r
2 metadata:\r
3   template_name: Main\r
4 imports:\r
5 - openecomp_heat_index:\r
6     file: openecomp-heat/_index.yml\r
7 - GlobalSubstitutionTypes:\r
8     file: GlobalSubstitutionTypesServiceTemplate.yaml\r
9 topology_template:\r
10   inputs:\r
11     ps_server_main_1b_image:\r
12       hidden: false\r
13       immutable: false\r
14       annotations:\r
15         source:\r
16           type: org.openecomp.annotations.Source\r
17           properties:\r
18             vf_module_label:\r
19             - main\r
20             source_type: HEAT\r
21             param_name: ps_server_main_1b_image\r
22       type: string\r
23       description: Ps Image server\r
24     security_group_name:\r
25       hidden: false\r
26       immutable: false\r
27       annotations:\r
28         source:\r
29           type: org.openecomp.annotations.Source\r
30           properties:\r
31             vf_module_label:\r
32             - main\r
33             source_type: HEAT\r
34             param_name: security_group_name\r
35       type: string\r
36       description: security_group_name\r
37     cmaui_1c1_main_names:\r
38       hidden: false\r
39       immutable: false\r
40       annotations:\r
41         source:\r
42           type: org.openecomp.annotations.Source\r
43           properties:\r
44             vf_module_label:\r
45             - main\r
46             source_type: HEAT\r
47             param_name: cmaui_1c1_main_names\r
48       type: list\r
49       description: CMAUI1, CMAUI2 server names\r
50       entry_schema:\r
51         type: string\r
52     contrail_net_name:\r
53       hidden: false\r
54       immutable: false\r
55       annotations:\r
56         source:\r
57           type: org.openecomp.annotations.Source\r
58           properties:\r
59             vf_module_label:\r
60             - main\r
61             source_type: HEAT\r
62             param_name: contrail_net_name\r
63       type: string\r
64       description: network name of contrail v2 network\r
65     ps_server_main_1b_flavor:\r
66       hidden: false\r
67       immutable: false\r
68       annotations:\r
69         source:\r
70           type: org.openecomp.annotations.Source\r
71           properties:\r
72             vf_module_label:\r
73             - main\r
74             source_type: HEAT\r
75             param_name: ps_server_main_1b_flavor\r
76       type: string\r
77       description: Flavor for PS server\r
78     ps_server_main_1b_ips:\r
79       hidden: false\r
80       immutable: false\r
81       annotations:\r
82         source:\r
83           type: org.openecomp.annotations.Source\r
84           properties:\r
85             vf_module_label:\r
86             - main\r
87             source_type: HEAT\r
88             param_name: ps_server_main_1b_ips\r
89       type: string\r
90     jsa_net_name:\r
91       hidden: false\r
92       immutable: false\r
93       annotations:\r
94         source:\r
95           type: org.openecomp.annotations.Source\r
96           properties:\r
97             vf_module_label:\r
98             - main\r
99             source_type: HEAT\r
100             param_name: jsa_net_name\r
101       type: string\r
102       description: network name of jsa network\r
103     jsa_name:\r
104       hidden: false\r
105       immutable: false\r
106       annotations:\r
107         source:\r
108           type: org.openecomp.annotations.Source\r
109           properties:\r
110             vf_module_label:\r
111             - main\r
112             source_type: HEAT\r
113             param_name: jsa_name\r
114       type: string\r
115       description: network name of jsa log network\r
116     pd_server_main_1b_names:\r
117       hidden: false\r
118       immutable: false\r
119       annotations:\r
120         source:\r
121           type: org.openecomp.annotations.Source\r
122           properties:\r
123             vf_module_label:\r
124             - main\r
125             source_type: HEAT\r
126             param_name: pd_server_main_1b_names\r
127       type: list\r
128       description: PD server names\r
129       entry_schema:\r
130         type: string\r
131     cmaui_1c1_main_flavor:\r
132       hidden: false\r
133       immutable: false\r
134       annotations:\r
135         source:\r
136           type: org.openecomp.annotations.Source\r
137           properties:\r
138             vf_module_label:\r
139             - main\r
140             source_type: HEAT\r
141             param_name: cmaui_1c1_main_flavor\r
142       type: string\r
143       description: Flavor for CMAUI server\r
144     pd_server_main_1b_flavor:\r
145       hidden: false\r
146       immutable: false\r
147       annotations:\r
148         source:\r
149           type: org.openecomp.annotations.Source\r
150           properties:\r
151             vf_module_label:\r
152             - main\r
153             source_type: HEAT\r
154             param_name: pd_server_main_1b_flavor\r
155       type: string\r
156       description: Flavor for PD server\r
157     cmaui_1c1_main_image:\r
158       hidden: false\r
159       immutable: false\r
160       annotations:\r
161         source:\r
162           type: org.openecomp.annotations.Source\r
163           properties:\r
164             vf_module_label:\r
165             - main\r
166             source_type: HEAT\r
167             param_name: cmaui_1c1_main_image\r
168       type: string\r
169       description: Image for CMAUI server\r
170     ps_server_main_1b_names:\r
171       hidden: false\r
172       immutable: false\r
173       annotations:\r
174         source:\r
175           type: org.openecomp.annotations.Source\r
176           properties:\r
177             vf_module_label:\r
178             - main\r
179             source_type: HEAT\r
180             param_name: ps_server_main_1b_names\r
181       type: list\r
182       description: Ps server names\r
183       entry_schema:\r
184         type: string\r
185     availability_zone_0:\r
186       label: availabilityzone name\r
187       hidden: false\r
188       immutable: false\r
189       annotations:\r
190         source:\r
191           type: org.openecomp.annotations.Source\r
192           properties:\r
193             vf_module_label:\r
194             - main\r
195             source_type: HEAT\r
196             param_name: availability_zone_0\r
197       type: string\r
198       description: availabilityzone name\r
199     cmaui_oam_ips:\r
200       hidden: false\r
201       immutable: false\r
202       annotations:\r
203         source:\r
204           type: org.openecomp.annotations.Source\r
205           properties:\r
206             vf_module_label:\r
207             - main\r
208             source_type: HEAT\r
209             param_name: cmaui_oam_ips\r
210       type: string\r
211     pd_server_main_1b_image:\r
212       hidden: false\r
213       immutable: false\r
214       annotations:\r
215         source:\r
216           type: org.openecomp.annotations.Source\r
217           properties:\r
218             vf_module_label:\r
219             - main\r
220             source_type: HEAT\r
221             param_name: pd_server_main_1b_image\r
222       type: string\r
223       description: PD Image server\r
224     pd_server_main_1b_ips:\r
225       hidden: false\r
226       immutable: false\r
227       annotations:\r
228         source:\r
229           type: org.openecomp.annotations.Source\r
230           properties:\r
231             vf_module_label:\r
232             - main\r
233             source_type: HEAT\r
234             param_name: pd_server_main_1b_ips\r
235       type: string\r
236   node_templates:\r
237     abstract_pd_server_main_1b_1:\r
238       type: org.openecomp.resource.abstract.nodes.pd_server_main_1b_1\r
239       directives:\r
240       - substitutable\r
241       properties:\r
242         compute_pd_server_main_1b_availability_zone:\r
243         - get_input: availability_zone_0\r
244         port_pd_server_main_1b_port_replacement_policy:\r
245         - AUTO\r
246         port_pd_server_main_1b_port_mac_requirements:\r
247           mac_count_required:\r
248             is_required: false\r
249         vm_flavor_name:\r
250           get_input: pd_server_main_1b_flavor\r
251         vm_image_name:\r
252           get_input: pd_server_main_1b_image\r
253         compute_pd_server_main_1b_name:\r
254         - get_input:\r
255           - pd_server_main_1b_names\r
256           - 0\r
257         port_pd_server_main_1b_port_network:\r
258         - get_input: jsa_name\r
259         port_pd_server_main_1b_port_ip_requirements:\r
260         - ip_version: 4\r
261           ip_count_required:\r
262             is_required: true\r
263           floating_ip_count_required:\r
264             is_required: false\r
265         port_pd_server_main_1b_port_fixed_ips:\r
266         - ip_address:\r
267             get_input:\r
268             - pd_server_main_1b_ips\r
269             - 0\r
270         service_template_filter:\r
271           substitute_service_template: Nested_pd_server_main_1b_1ServiceTemplate.yaml\r
272           count: 1\r
273         index_value:\r
274           get_property:\r
275           - SELF\r
276           - service_template_filter\r
277           - index_value\r
278     abstract_ps_server_main_1b_1:\r
279       type: org.openecomp.resource.abstract.nodes.ps_server_main_1b_1\r
280       directives:\r
281       - substitutable\r
282       properties:\r
283         port_ps_server_main_1b_port_fixed_ips:\r
284         - ip_address:\r
285             get_input:\r
286             - ps_server_main_1b_ips\r
287             - 0\r
288         port_ps_server_main_1b_port_ip_requirements:\r
289         - ip_version: 4\r
290           ip_count_required:\r
291             is_required: true\r
292           floating_ip_count_required:\r
293             is_required: false\r
294         compute_ps_server_main_1b_availability_zone:\r
295         - get_input: availability_zone_0\r
296         vm_flavor_name:\r
297           get_input: ps_server_main_1b_flavor\r
298         vm_image_name:\r
299           get_input: ps_server_main_1b_image\r
300         compute_ps_server_main_1b_name:\r
301         - get_input:\r
302           - ps_server_main_1b_names\r
303           - 1\r
304         port_ps_server_main_1b_port_replacement_policy:\r
305         - AUTO\r
306         port_ps_server_main_1b_port_mac_requirements:\r
307           mac_count_required:\r
308             is_required: false\r
309         port_ps_server_main_1b_port_network:\r
310         - get_input: jsa_name\r
311         service_template_filter:\r
312           substitute_service_template: Nested_ps_server_main_1b_1ServiceTemplate.yaml\r
313           count: 1\r
314         index_value:\r
315           get_property:\r
316           - SELF\r
317           - service_template_filter\r
318           - index_value\r
319     test_nested1Level_duplicate_same_file:\r
320       type: org.openecomp.resource.abstract.nodes.heat.nested1\r
321       directives:\r
322       - substitutable\r
323       properties:\r
324         service_template_filter:\r
325           substitute_service_template: nested1ServiceTemplate.yaml\r
326         name:\r
327           get_input: security_group_name\r
328     test_nested_no_compute:\r
329       type: org.openecomp.resource.abstract.nodes.heat.nested1-no-compute\r
330       directives:\r
331       - substitutable\r
332       properties:\r
333         service_template_filter:\r
334           substitute_service_template: nested1-no-computeServiceTemplate.yaml\r
335         name:\r
336           get_input: jsa_net_name\r
337     abstract_cmaui_1c1_main_1:\r
338       type: org.openecomp.resource.abstract.nodes.cmaui_1c1_main_1\r
339       directives:\r
340       - substitutable\r
341       properties:\r
342         port_cmaui_port_fixed_ips:\r
343         - - ip_address:\r
344               get_input:\r
345               - cmaui_oam_ips\r
346               - 0\r
347         - - ip_address:\r
348               get_input:\r
349               - cmaui_oam_ips\r
350               - 0\r
351         port_cmaui_port_network:\r
352         - get_input: contrail_net_name\r
353         - get_input: contrail_net_name\r
354         port_cmaui_port_network_role_tag: contrail\r
355         vm_flavor_name:\r
356           get_input: cmaui_1c1_main_flavor\r
357         port_cmaui_port_mac_requirements:\r
358           mac_count_required:\r
359             is_required: false\r
360         port_cmaui_port_replacement_policy:\r
361         - AUTO\r
362         - AUTO\r
363         vm_image_name:\r
364           get_input: cmaui_1c1_main_image\r
365         port_cmaui_port_ip_requirements:\r
366         - - ip_version: 4\r
367             ip_count_required:\r
368               is_required: true\r
369             floating_ip_count_required:\r
370               is_required: false\r
371         - - ip_version: 4\r
372             ip_count_required:\r
373               is_required: true\r
374             floating_ip_count_required:\r
375               is_required: false\r
376         compute_cmaui_1c1_main_availability_zone:\r
377         - get_input: availability_zone_0\r
378         - get_input: availability_zone_0\r
379         compute_cmaui_1c1_main_name:\r
380         - get_input:\r
381           - cmaui_1c1_main_names\r
382           - 1\r
383         - get_input:\r
384           - cmaui_1c1_main_names\r
385           - 0\r
386         service_template_filter:\r
387           substitute_service_template: Nested_cmaui_1c1_main_1ServiceTemplate.yaml\r
388           count: 2\r
389         index_value:\r
390           get_property:\r
391           - SELF\r
392           - service_template_filter\r
393           - index_value\r
394     test_nested_pattern_4_main_0:\r
395       type: org.openecomp.resource.abstract.nodes.heat.pd_server_pattern4\r
396       directives:\r
397       - substitutable\r
398       properties:\r
399         p1:\r
400           get_input: jsa_name\r
401         service_template_filter:\r
402           substitute_service_template: nested-pattern-4ServiceTemplate.yaml\r
403         port_pd_server_pattern4_port_01_mac_requirements:\r
404           mac_count_required:\r
405             is_required: false\r
406         port_pd_server_pattern4_port_02_ip_requirements:\r
407         - ip_version: 4\r
408           ip_count_required:\r
409             is_required: true\r
410           floating_ip_count_required:\r
411             is_required: false\r
412         port_pd_server_pattern4_port_02_mac_requirements:\r
413           mac_count_required:\r
414             is_required: false\r
415         port_pd_server_pattern4_port_01_ip_requirements:\r
416         - ip_version: 4\r
417           ip_count_required:\r
418             is_required: true\r
419           floating_ip_count_required:\r
420             is_required: false\r
421     test_nested1Level:\r
422       type: org.openecomp.resource.abstract.nodes.heat.nested1\r
423       directives:\r
424       - substitutable\r
425       properties:\r
426         service_template_filter:\r
427           substitute_service_template: nested1ServiceTemplate.yaml\r
428         name:\r
429           get_input: security_group_name\r
430   groups:\r
431     main_group:\r
432       type: org.openecomp.groups.heat.HeatStack\r
433       properties:\r
434         heat_file: ../Artifacts/main.yml\r
435         description: |\r
436           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)\r
437       members:\r
438       - test_nested1Level\r
439       - test_nested1Level_duplicate_same_file\r
440       - test_nested_no_compute\r
441       - test_nested_pattern_4_main_0\r
442       - abstract_pd_server_main_1b_1\r
443       - abstract_ps_server_main_1b_1\r
444       - abstract_cmaui_1c1_main_1\r