66010f08b03699e4369319614f438aaf393b1326
[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     pd_flavor_name:
12       label: PD flavor name
13       hidden: false
14       immutable: false
15       annotations:
16         source:
17           type: org.openecomp.annotations.Source
18           properties:
19             vf_module_label:
20             - main
21             source_type: HEAT
22             param_name: pd_flavor_name
23       type: string
24       description: flavor name of PD instance
25     p1:
26       hidden: false
27       immutable: false
28       annotations:
29         source:
30           type: org.openecomp.annotations.Source
31           properties:
32             vf_module_label:
33             - main
34             source_type: HEAT
35             param_name: p1
36       type: string
37       description: UID of OAM network
38     availabilityzone_name:
39       label: availabilityzone name
40       hidden: false
41       immutable: false
42       annotations:
43         source:
44           type: org.openecomp.annotations.Source
45           properties:
46             vf_module_label:
47             - main
48             source_type: HEAT
49             param_name: availabilityzone_name
50       type: string
51       description: availabilityzone name
52     security_group_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: security_group_name
63       type: string
64       description: network name of jsa log network
65     pd_image_name:
66       label: image name
67       hidden: false
68       immutable: false
69       annotations:
70         source:
71           type: org.openecomp.annotations.Source
72           properties:
73             vf_module_label:
74             - main
75             source_type: HEAT
76             param_name: pd_image_name
77       type: string
78       description: PD image name
79     pd_server_names:
80       label: PD server names
81       hidden: false
82       immutable: false
83       annotations:
84         source:
85           type: org.openecomp.annotations.Source
86           properties:
87             vf_module_label:
88             - main
89             source_type: HEAT
90             param_name: pd_server_names
91       type: list
92       description: name of the PD instance
93       entry_schema:
94         type: string
95     oam_net_name:
96       hidden: false
97       immutable: false
98       annotations:
99         source:
100           type: org.openecomp.annotations.Source
101           properties:
102             vf_module_label:
103             - main
104             source_type: HEAT
105             param_name: oam_net_name
106       type: string
107       description: net name
108     jsa_name:
109       hidden: false
110       immutable: false
111       annotations:
112         source:
113           type: org.openecomp.annotations.Source
114           properties:
115             vf_module_label:
116             - main
117             source_type: HEAT
118             param_name: jsa_name
119       type: string
120       description: network name of jsa log network
121   node_templates:
122     test_nested1Level:
123       type: org.openecomp.resource.abstract.nodes.heat.nested1
124       directives:
125       - substitutable
126       properties:
127         p1:
128           get_input: p1
129         service_template_filter:
130           substitute_service_template: nested1ServiceTemplate.yaml
131     abstract_pd_server:
132       type: org.openecomp.resource.abstract.nodes.pd_server
133       directives:
134       - substitutable
135       properties:
136         compute_pd_server_availability_zone:
137         - get_input: availabilityzone_name
138         compute_pd_server_name:
139         - get_input:
140           - pd_server_names
141           - 1
142         port_pd02_port_mac_requirements:
143           mac_count_required:
144             is_required: false
145         vm_flavor_name:
146           get_input: pd_flavor_name
147         port_pd02_port_network_role_tag: oam
148         vm_image_name:
149           get_input: pd_image_name
150         port_pd02_port_ip_requirements:
151         - ip_version: 4
152           ip_count_required:
153             is_required: false
154           floating_ip_count_required:
155             is_required: false
156         - ip_version: 6
157           ip_count_required:
158             is_required: false
159           floating_ip_count_required:
160             is_required: false
161         port_pd02_port_network:
162         - get_input: oam_net_name
163         compute_pd_server_user_data_format:
164         - RAW
165         service_template_filter:
166           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
167           count: 1
168         index_value:
169           get_property:
170           - SELF
171           - service_template_filter
172           - index_value
173     abstract_pd_server_1:
174       type: org.openecomp.resource.abstract.nodes.pd_server_1
175       directives:
176       - substitutable
177       properties:
178         compute_pd_server_availability_zone:
179         - get_input: availabilityzone_name
180         compute_pd_server_name:
181         - get_input:
182           - pd_server_names
183           - 0
184         vm_flavor_name:
185           get_input: pd_flavor_name
186         port_pd01_port_mac_requirements:
187           mac_count_required:
188             is_required: false
189         vm_image_name:
190           get_input: pd_image_name
191         port_pd01_port_ip_requirements:
192         - ip_version: 4
193           ip_count_required:
194             is_required: false
195           floating_ip_count_required:
196             is_required: false
197         - ip_version: 6
198           ip_count_required:
199             is_required: false
200           floating_ip_count_required:
201             is_required: false
202         port_pd01_port_network:
203         - get_input: oam_net_name
204         port_pd01_port_network_role_tag: oam
205         compute_pd_server_user_data_format:
206         - RAW
207         service_template_filter:
208           substitute_service_template: Nested_pd_server_1ServiceTemplate.yaml
209           count: 1
210         index_value:
211           get_property:
212           - SELF
213           - service_template_filter
214           - index_value
215   groups:
216     main_group:
217       type: org.openecomp.groups.heat.HeatStack
218       properties:
219         heat_file: ../Artifacts/main.yml
220         description: |
221           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
222       members:
223       - test_nested1Level
224       - abstract_pd_server
225       - abstract_pd_server_1