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