d353757112f8bc9cc8e297d62c642c37d9a73553
[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 node_types:
8   org.openecomp.resource.vfc.nodes.heat.cmaui:
9     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
10 topology_template:
11   inputs:
12     cmaui_names:
13       hidden: false
14       immutable: false
15       annotations:
16         source:
17           type: org.openecomp.annotations.Source
18           properties:
19             vf_module_label:
20             - addOn
21             source_type: HEAT
22             param_name: cmaui_names
23       type: list
24       description: CMAUI1, CMAUI2 server names
25       entry_schema:
26         type: string
27     cmaui_cinder_volume_size:
28       label: CMAUI Cinder volume size
29       hidden: false
30       immutable: false
31       annotations:
32         source:
33           type: org.openecomp.annotations.Source
34           properties:
35             vf_module_label:
36             - addOn
37             - main
38             source_type: HEAT
39             param_name: cmaui_cinder_volume_size
40       type: float
41       description: the size of the CMAUI Cinder volume
42     timezone:
43       label: timezone
44       hidden: false
45       immutable: false
46       annotations:
47         source:
48           type: org.openecomp.annotations.Source
49           properties:
50             vf_module_label:
51             - addOn
52             source_type: HEAT
53             param_name: timezone
54       type: string
55       description: timezone
56     security_group_name:
57       label: security group name
58       hidden: false
59       immutable: false
60       annotations:
61         source:
62           type: org.openecomp.annotations.Source
63           properties:
64             vf_module_label:
65             - addOn
66             source_type: HEAT
67             param_name: security_group_name
68       type: string
69       description: the name of security group
70     cmaui_volume:
71       label: CMAUI vm volume type
72       hidden: false
73       immutable: false
74       annotations:
75         source:
76           type: org.openecomp.annotations.Source
77           properties:
78             vf_module_label:
79             - addOn
80             source_type: HEAT
81             param_name: cmaui_volume
82       type: string
83       description: the name of the target volume backend
84     oam_network_netmask:
85       label: oam network netmask
86       hidden: false
87       immutable: false
88       annotations:
89         source:
90           type: org.openecomp.annotations.Source
91           properties:
92             vf_module_label:
93             - addOn
94             source_type: HEAT
95             param_name: oam_network_netmask
96       type: string
97       description: oam network gateway
98     cmaui_volume_param1:
99       hidden: false
100       immutable: false
101       annotations:
102         source:
103           type: org.openecomp.annotations.Source
104           properties:
105             vf_module_label:
106             - addOn
107             source_type: HEAT
108             param_name: cmaui_volume_param1
109       type: string
110       description: nova server id
111     cmaui_image:
112       hidden: false
113       immutable: false
114       annotations:
115         source:
116           type: org.openecomp.annotations.Source
117           properties:
118             vf_module_label:
119             - addOn
120             source_type: HEAT
121             param_name: cmaui_image
122       type: string
123       description: Image for CMAUI server
124     vnf_id:
125       hidden: false
126       immutable: false
127       annotations:
128         source:
129           type: org.openecomp.annotations.Source
130           properties:
131             vf_module_label:
132             - addOn
133             source_type: HEAT
134             param_name: vnf_id
135       type: string
136       description: Unique ID for this VNF instance
137       default: This_is_ths_MMSC-CMAUI_id
138     cmaui_flavor:
139       hidden: false
140       immutable: false
141       annotations:
142         source:
143           type: org.openecomp.annotations.Source
144           properties:
145             vf_module_label:
146             - addOn
147             source_type: HEAT
148             param_name: cmaui_flavor
149       type: string
150       description: Flavor for CMAUI server
151     oam_network_gateway:
152       label: oam network gateway
153       hidden: false
154       immutable: false
155       annotations:
156         source:
157           type: org.openecomp.annotations.Source
158           properties:
159             vf_module_label:
160             - addOn
161             source_type: HEAT
162             param_name: oam_network_gateway
163       type: string
164       description: oam network gateway
165     cmaui_volume_param2:
166       hidden: false
167       immutable: false
168       annotations:
169         source:
170           type: org.openecomp.annotations.Source
171           properties:
172             vf_module_label:
173             - addOn
174             source_type: HEAT
175             param_name: cmaui_volume_param2
176       type: string
177       description: nova server id
178     availability_zone_0:
179       label: availabilityzone name
180       hidden: false
181       immutable: false
182       annotations:
183         source:
184           type: org.openecomp.annotations.Source
185           properties:
186             vf_module_label:
187             - addOn
188             source_type: HEAT
189             param_name: availability_zone_0
190       type: string
191       description: availabilityzone name
192     cmaui_oam_ips:
193       label: CMAUI oam_net IP addresses
194       hidden: false
195       immutable: false
196       annotations:
197         source:
198           type: org.openecomp.annotations.Source
199           properties:
200             vf_module_label:
201             - addOn
202             source_type: HEAT
203             param_name: cmaui_oam_ips
204       type: list
205       description: CMAUI oam_net IP addresses
206       entry_schema:
207         type: string
208     external_dns:
209       label: dns server
210       hidden: false
211       immutable: false
212       annotations:
213         source:
214           type: org.openecomp.annotations.Source
215           properties:
216             vf_module_label:
217             - addOn
218             source_type: HEAT
219             param_name: external_dns
220       type: string
221       description: dns server
222     oam_net_name:
223       hidden: false
224       immutable: false
225       annotations:
226         source:
227           type: org.openecomp.annotations.Source
228           properties:
229             vf_module_label:
230             - addOn
231             source_type: HEAT
232             param_name: oam_net_name
233       type: string
234       description: UID of OAM network
235     CMAUI_volume_type:
236       label: CMAUI vm volume type
237       hidden: false
238       immutable: false
239       annotations:
240         source:
241           type: org.openecomp.annotations.Source
242           properties:
243             vf_module_label:
244             - addOn
245             - main
246             source_type: HEAT
247             param_name: CMAUI_volume_type
248       type: string
249       description: the name of the target volume backend
250     external_ntp:
251       label: ntp server
252       hidden: false
253       immutable: false
254       annotations:
255         source:
256           type: org.openecomp.annotations.Source
257           properties:
258             vf_module_label:
259             - addOn
260             source_type: HEAT
261             param_name: external_ntp
262       type: string
263       description: ntp server
264   node_templates:
265     cmaui_port_2:
266       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
267       properties:
268         replacement_policy: AUTO
269         ip_requirements:
270         - ip_version: 4
271           ip_count_required:
272             is_required: true
273           floating_ip_count_required:
274             is_required: false
275         - ip_version: 6
276           ip_count_required:
277             is_required: false
278           floating_ip_count_required:
279             is_required: false
280         security_groups:
281         - get_input: security_group_name
282         fixed_ips:
283         - ip_address:
284             get_input:
285             - cmaui_oam_ips
286             - 0
287         mac_requirements:
288           mac_count_required:
289             is_required: false
290         network_role_tag: oam
291         network:
292           get_input: oam_net_name
293       requirements:
294       - binding:
295           capability: tosca.capabilities.network.Bindable
296           node: server_cmaui2
297           relationship: tosca.relationships.network.BindsTo
298     server_cmaui2:
299       type: org.openecomp.resource.vfc.nodes.heat.cmaui
300       properties:
301         flavor:
302           get_input: cmaui_flavor
303         availability_zone:
304           get_input: availability_zone_0
305         image:
306           get_input: cmaui_image
307         metadata:
308           vnf_id:
309             get_input: vnf_id
310         user_data_format: RAW
311         name:
312           get_input:
313           - cmaui_names
314           - 0
315       requirements:
316       - local_storage:
317           capability: tosca.capabilities.Attachment
318           node: cmaui_volume2
319           relationship: cmaui_volume_attachment3
320     server_cmaui1:
321       type: org.openecomp.resource.vfc.nodes.heat.cmaui
322       properties:
323         flavor:
324           get_input: cmaui_flavor
325         availability_zone:
326           get_input: availability_zone_0
327         image:
328           get_input: cmaui_image
329         metadata:
330           vnf_id:
331             get_input: vnf_id
332         user_data_format: RAW
333         name:
334           get_input:
335           - cmaui_names
336           - 0
337       requirements:
338       - local_storage:
339           capability: tosca.capabilities.Attachment
340           node: cmaui_volume1
341           relationship: cmaui_volume_attachment1
342       - local_storage:
343           capability: tosca.capabilities.Attachment
344           node: cmaui_volume2
345           relationship: cmaui_volume_attachment2
346     cmaui_volume1:
347       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
348       properties:
349         volume_type:
350           get_input: CMAUI_volume_type
351         size: '(get_input : cmaui_cinder_volume_size) * 1024'
352     cmaui_volume2:
353       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
354       properties:
355         volume_type:
356           get_input: CMAUI_volume_type
357         size: '(get_input : cmaui_cinder_volume_size) * 1024'
358     cmaui_port_1:
359       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
360       properties:
361         replacement_policy: AUTO
362         ip_requirements:
363         - ip_version: 4
364           ip_count_required:
365             is_required: true
366           floating_ip_count_required:
367             is_required: false
368         - ip_version: 6
369           ip_count_required:
370             is_required: false
371           floating_ip_count_required:
372             is_required: false
373         security_groups:
374         - get_input: security_group_name
375         fixed_ips:
376         - ip_address:
377             get_input:
378             - cmaui_oam_ips
379             - 0
380         mac_requirements:
381           mac_count_required:
382             is_required: false
383         network_role_tag: oam
384         network:
385           get_input: oam_net_name
386       requirements:
387       - binding:
388           capability: tosca.capabilities.network.Bindable
389           node: server_cmaui1
390           relationship: tosca.relationships.network.BindsTo
391   relationship_templates:
392     cmaui_volume_attachment2:
393       type: org.openecomp.relationships.VolumeAttachesTo
394       properties:
395         volume_id:
396           get_input: cmaui_volume_param2
397         instance_uuid: server_cmaui1
398     cmaui_volume_attachment3:
399       type: org.openecomp.relationships.VolumeAttachesTo
400       properties:
401         volume_id:
402           get_input: cmaui_volume_param2
403         instance_uuid: server_cmaui2
404     cmaui_volume_attachment1:
405       type: org.openecomp.relationships.VolumeAttachesTo
406       properties:
407         volume_id:
408           get_input: cmaui_volume_param1
409         instance_uuid: server_cmaui1
410   groups:
411     main_group:
412       type: org.openecomp.groups.heat.HeatStack
413       properties:
414         heat_file: ../Artifacts/main.yml
415         description: volume
416       members:
417       - cmaui_volume1
418       - cmaui_volume2
419     addOn_group:
420       type: org.openecomp.groups.heat.HeatStack
421       properties:
422         heat_file: ../Artifacts/addOn.yml
423         description: cmaui server template for vMMSC
424       members:
425       - cmaui_port_2
426       - server_cmaui2
427       - server_cmaui1
428       - cmaui_port_1