a5bb292d55e1db3b91c59f30f75149b3d3579985
[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_server_1b_flavor:
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: pd_server_1b_flavor
22       type: string
23       description: Flavor for PS server
24     packet_externalmain_network_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: packet_externalmain_network_name
35       type: string
36       description: network name
37     pd_server_1b_ips:
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: pd_server_1b_ips
48       type: string
49     pd_server_1b_names:
50       hidden: false
51       immutable: false
52       annotations:
53         source:
54           type: org.openecomp.annotations.Source
55           properties:
56             vf_module_label:
57             - main
58             source_type: HEAT
59             param_name: pd_server_1b_names
60       type: list
61       description: Ps server names
62       entry_schema:
63         type: string
64     availability_zone_0:
65       label: availabilityzone name
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: availability_zone_0
76       type: string
77       description: availabilityzone name
78     packet_internalmain_network_name:
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: packet_internalmain_network_name
89       type: string
90       description: network name
91     pd_server_1b_image:
92       hidden: false
93       immutable: false
94       annotations:
95         source:
96           type: org.openecomp.annotations.Source
97           properties:
98             vf_module_label:
99             - main
100             source_type: HEAT
101             param_name: pd_server_1b_image
102       type: string
103       description: Ps Image server
104     pd_server_2b_ips:
105       hidden: false
106       immutable: false
107       annotations:
108         source:
109           type: org.openecomp.annotations.Source
110           properties:
111             vf_module_label:
112             - main
113             source_type: HEAT
114             param_name: pd_server_2b_ips
115       type: string
116   node_templates:
117     abstract_pd_server_1b_1:
118       type: org.openecomp.resource.abstract.nodes.pd_server_1b_1
119       directives:
120       - substitutable
121       properties:
122         compute_pd_server_1b_name:
123         - get_input:
124           - pd_server_1b_names
125           - 0
126         - get_input:
127           - pd_server_1b_names
128           - 1
129         - get_input:
130           - pd_server_1b_names
131           - 2
132         - get_input:
133           - pd_server_1b_names
134           - 1
135         subinterface_nested_vlan_service_template_filter_count:
136         - 9
137         - 9
138         - 9
139         - 9
140         vm_flavor_name:
141           get_input: pd_server_1b_flavor
142         subinterface_nested_vlan_net1:
143         - packet_externalmain_network
144         - packet_externalmain_network
145         - packet_externalmain_network
146         - packet_externalmain_network
147         vm_image_name:
148           get_input: pd_server_1b_image
149         port_pd_server_1b_port_replacement_policy:
150         - AUTO
151         - AUTO
152         - AUTO
153         - AUTO
154         port_pd_server_1b_port_mac_requirements:
155           mac_count_required:
156             is_required: false
157         subinterface_nested_vlan_parent_interface:
158         - pd_server_1b_port_0
159         - pd_server_1b_port_01
160         - pd_server_1b_port_11
161         - pd_server_1b_port_1
162         port_pd_server_1b_port_fixed_ips:
163         - - ip_address:
164               get_input:
165               - pd_server_1b_ips
166               - 0
167         - - ip_address:
168               get_input:
169               - pd_server_1b_ips
170               - 0
171         - - ip_address:
172               get_input:
173               - pd_server_1b_ips
174               - 1
175         - - ip_address:
176               get_input:
177               - pd_server_1b_ips
178               - 1
179         port_pd_server_1b_port_network:
180         - packet_internalmain_network
181         - packet_internalmain_network
182         - packet_internalmain_network
183         - packet_internalmain_network
184         compute_pd_server_1b_availability_zone:
185         - get_input: availability_zone_0
186         - get_input: availability_zone_0
187         - get_input: availability_zone_0
188         - get_input: availability_zone_0
189         port_pd_server_1b_port_ip_requirements:
190         - - ip_version: 4
191             ip_count_required:
192               is_required: true
193             floating_ip_count_required:
194               is_required: false
195           - ip_version: 6
196             ip_count_required:
197               is_required: false
198             floating_ip_count_required:
199               is_required: false
200         - - ip_version: 4
201             ip_count_required:
202               is_required: true
203             floating_ip_count_required:
204               is_required: false
205           - ip_version: 6
206             ip_count_required:
207               is_required: false
208             floating_ip_count_required:
209               is_required: false
210         - - ip_version: 4
211             ip_count_required:
212               is_required: true
213             floating_ip_count_required:
214               is_required: false
215           - ip_version: 6
216             ip_count_required:
217               is_required: false
218             floating_ip_count_required:
219               is_required: false
220         - - ip_version: 4
221             ip_count_required:
222               is_required: true
223             floating_ip_count_required:
224               is_required: false
225           - ip_version: 6
226             ip_count_required:
227               is_required: false
228             floating_ip_count_required:
229               is_required: false
230         service_template_filter:
231           substitute_service_template: Nested_pd_server_1b_1ServiceTemplate.yaml
232           count: 4
233         index_value:
234           get_property:
235           - SELF
236           - service_template_filter
237           - index_value
238       requirements:
239       - link_pd_server_1b_pd_server_1b_port:
240           capability: tosca.capabilities.network.Linkable
241           node: packet_internalmain_network
242           relationship: tosca.relationships.network.LinksTo
243       - link_template_Vlan_vmi_1_pd_server_1b_pd_server_1b_port_nested_vlan:
244           capability: tosca.capabilities.network.Linkable
245           node: packet_externalmain_network
246           relationship: tosca.relationships.network.LinksTo
247     packet_internalmain_network:
248       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
249       properties:
250         network_name:
251           get_input: packet_internalmain_network_name
252     test_nested_level1:
253       type: org.openecomp.resource.abstract.nodes.heat.nested_pattern5
254       directives:
255       - substitutable
256       properties:
257         service_template_filter:
258           substitute_service_template: nested_pattern5ServiceTemplate.yaml
259     packet_externalmain_network:
260       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
261       properties:
262         network_name:
263           get_input: packet_externalmain_network_name
264   groups:
265     main_group:
266       type: org.openecomp.groups.heat.HeatStack
267       properties:
268         heat_file: ../Artifacts/main.yml
269         description: |
270           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
271       members:
272       - packet_internalmain_network
273       - test_nested_level1
274       - packet_externalmain_network
275       - abstract_pd_server_1b_1