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