fa1596322b1369d6d485db85f3a946821256bd38
[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         service_template_filter:
196           substitute_service_template: Nested_pd_server_1b_1ServiceTemplate.yaml
197           count: 4
198         index_value:
199           get_property:
200           - SELF
201           - service_template_filter
202           - index_value
203       requirements:
204       - link_pd_server_1b_pd_server_1b_port:
205           capability: tosca.capabilities.network.Linkable
206           node: packet_internalmain_network
207           relationship: tosca.relationships.network.LinksTo
208       - subinterface_link_template_Vlan_vmi_1_pd_server_1b_pd_server_1b_port_nested_vlan:
209           capability: tosca.capabilities.network.Linkable
210           node: packet_externalmain_network
211           relationship: tosca.relationships.network.LinksTo
212     packet_internalmain_network:
213       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
214       properties:
215         network_name:
216           get_input: packet_internalmain_network_name
217     test_nested_level1:
218       type: org.openecomp.resource.abstract.nodes.heat.nested_pattern5
219       directives:
220       - substitutable
221       properties:
222         service_template_filter:
223           substitute_service_template: nested_pattern5ServiceTemplate.yaml
224     packet_externalmain_network:
225       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
226       properties:
227         network_name:
228           get_input: packet_externalmain_network_name
229   groups:
230     main_group:
231       type: org.openecomp.groups.heat.HeatStack
232       properties:
233         heat_file: ../Artifacts/main.yml
234         description: |
235           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
236       members:
237       - packet_internalmain_network
238       - test_nested_level1
239       - packet_externalmain_network
240       - abstract_pd_server_1b_1