938b9ecd6d5bf87918ab2cf326c3def10616fdad
[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             - hot-mog-0108-bs1271
21             source_type: HEAT
22             param_name: pd_flavor_name
23       type: string
24       description: flavor name of PD instance
25       default: m3.xlarge
26     dummy_net_name_1:
27       label: csb ineternal cidr
28       hidden: false
29       immutable: false
30       annotations:
31         source:
32           type: org.openecomp.annotations.Source
33           properties:
34             vf_module_label:
35             - hot-mog-0108-bs1271
36             source_type: HEAT
37             param_name: dummy_net_name_1
38       type: string
39       description: csb internal cidr
40       default: mog_dummy_1
41     availabilityzone_name:
42       label: availabilityzone name
43       hidden: false
44       immutable: false
45       annotations:
46         source:
47           type: org.openecomp.annotations.Source
48           properties:
49             vf_module_label:
50             - hot-mog-0108-bs1271
51             source_type: HEAT
52             param_name: availabilityzone_name
53       type: string
54       description: availabilityzone name
55       default: nova
56     packet_internal_network_name:
57       label: packet internal network name
58       hidden: false
59       immutable: false
60       annotations:
61         source:
62           type: org.openecomp.annotations.Source
63           properties:
64             vf_module_label:
65             - hot-mog-0108-bs1271
66             source_type: HEAT
67             param_name: packet_internal_network_name
68       type: string
69       description: name of the network
70     pd_image_name:
71       label: image name
72       hidden: false
73       immutable: false
74       annotations:
75         source:
76           type: org.openecomp.annotations.Source
77           properties:
78             vf_module_label:
79             - hot-mog-0108-bs1271
80             source_type: HEAT
81             param_name: pd_image_name
82       type: string
83       description: PD image name
84       default: MOG_BASE_8.0
85     pd_server_names:
86       label: PD server names
87       hidden: false
88       immutable: false
89       annotations:
90         source:
91           type: org.openecomp.annotations.Source
92           properties:
93             vf_module_label:
94             - hot-mog-0108-bs1271
95             source_type: HEAT
96             param_name: pd_server_names
97       type: list
98       description: name of the PD instance
99       default:
100       - ZRDM1MOGX01MPD001
101       - ZRDM1MOGX01MPD002
102       - ' ZRDM1MOGX01MPD003'
103       entry_schema:
104         type: string
105     oam_net_name:
106       label: oam network name
107       hidden: false
108       immutable: false
109       annotations:
110         source:
111           type: org.openecomp.annotations.Source
112           properties:
113             vf_module_label:
114             - hot-mog-0108-bs1271
115             source_type: HEAT
116             param_name: oam_net_name
117       type: string
118       description: name of the oam network
119     diff_image_name:
120       label: image name
121       hidden: false
122       immutable: false
123       annotations:
124         source:
125           type: org.openecomp.annotations.Source
126           properties:
127             vf_module_label:
128             - hot-mog-0108-bs1271
129             source_type: HEAT
130             param_name: diff_image_name
131       type: string
132       description: PD image name
133   node_templates:
134     packet_internal_network:
135       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
136       properties:
137         network_name:
138           get_input: packet_internal_network_name
139     abstract_pd_server_2:
140       type: org.openecomp.resource.abstract.nodes.pd_server
141       directives:
142       - substitutable
143       properties:
144         compute_pd_server_availability_zone:
145         - get_input: availabilityzone_name
146         compute_pd_server_name:
147         - get_input:
148           - pd_server_names
149           - 2
150         vm_flavor_name:
151           get_input: pd_flavor_name
152         port_pd01_port_mac_requirements:
153           mac_count_required:
154             is_required: false
155         vm_image_name:
156           get_input: diff_image_name
157         port_pd01_port_ip_requirements:
158         - ip_version: 4
159           ip_count_required:
160             is_required: false
161           floating_ip_count_required:
162             is_required: false
163         port_pd01_port_network:
164         - packet_internal_network
165         port_pd01_port_subinterface_indicator:
166         - false
167         compute_pd_server_user_data_format:
168         - RAW
169         service_template_filter:
170           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
171           count: 1
172         index_value:
173           get_property:
174           - SELF
175           - service_template_filter
176           - index_value
177       requirements:
178       - link_pd_server_pd01_port:
179           capability: tosca.capabilities.network.Linkable
180           node: packet_internal_network
181           relationship: tosca.relationships.network.LinksTo
182     abstract_pd_server_0:
183       type: org.openecomp.resource.abstract.nodes.pd_server
184       directives:
185       - substitutable
186       properties:
187         compute_pd_server_availability_zone:
188         - get_input: availabilityzone_name
189         compute_pd_server_name:
190         - get_input:
191           - pd_server_names
192           - 0
193         vm_flavor_name:
194           get_input: pd_flavor_name
195         port_pd01_port_mac_requirements:
196           mac_count_required:
197             is_required: false
198         vm_image_name:
199           get_input: pd_image_name
200         port_pd01_port_ip_requirements:
201         - ip_version: 4
202           ip_count_required:
203             is_required: false
204           floating_ip_count_required:
205             is_required: false
206         port_pd01_port_network:
207         - packet_internal_network
208         port_pd01_port_subinterface_indicator:
209         - false
210         compute_pd_server_user_data_format:
211         - RAW
212         service_template_filter:
213           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
214           count: 1
215         index_value:
216           get_property:
217           - SELF
218           - service_template_filter
219           - index_value
220       requirements:
221       - link_pd_server_pd01_port:
222           capability: tosca.capabilities.network.Linkable
223           node: packet_internal_network
224           relationship: tosca.relationships.network.LinksTo
225     abstract_pd_server_1:
226       type: org.openecomp.resource.abstract.nodes.pd_server
227       directives:
228       - substitutable
229       properties:
230         compute_pd_server_availability_zone:
231         - get_input: availabilityzone_name
232         compute_pd_server_name:
233         - get_input:
234           - pd_server_names
235           - 1
236         vm_flavor_name:
237           get_input: pd_flavor_name
238         port_pd01_port_mac_requirements:
239           mac_count_required:
240             is_required: false
241         vm_image_name:
242           get_input: pd_image_name
243         port_pd01_port_ip_requirements:
244         - ip_version: 4
245           ip_count_required:
246             is_required: false
247           floating_ip_count_required:
248             is_required: false
249         port_pd01_port_network:
250         - packet_internal_network
251         port_pd01_port_subinterface_indicator:
252         - false
253         compute_pd_server_user_data_format:
254         - RAW
255         service_template_filter:
256           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
257           count: 1
258         index_value:
259           get_property:
260           - SELF
261           - service_template_filter
262           - index_value
263       requirements:
264       - link_pd_server_pd01_port:
265           capability: tosca.capabilities.network.Linkable
266           node: packet_internal_network
267           relationship: tosca.relationships.network.LinksTo
268   groups:
269     hot-mog-0108-bs1271_group:
270       type: org.openecomp.groups.heat.HeatStack
271       properties:
272         heat_file: ../Artifacts/hot-mog-0108-bs1271.yml
273         description: heat template that creates MOG stack
274       members:
275       - packet_internal_network
276       - abstract_pd_server_0
277       - abstract_pd_server_1
278       - abstract_pd_server_2