fe9c34a568f436adc1ba2234654708f3ec1bb9be
[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         security_groups:
317         - get_input: security_group_name
318         fixed_ips:
319         - ip_address:
320             get_input:
321             - cmaui_oam_ips
322             - 0
323         mac_requirements:
324           mac_count_required:
325             is_required: false
326         network_role_tag: oam
327         network:
328           get_input: oam_net_name
329       requirements:
330       - binding:
331           capability: tosca.capabilities.network.Bindable
332           node: server_cmaui2
333           relationship: tosca.relationships.network.BindsTo
334     cmaui_port_11:
335       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
336       properties:
337         replacement_policy: AUTO
338         ip_requirements:
339         - ip_version: 4
340           ip_count_required:
341             is_required: true
342           floating_ip_count_required:
343             is_required: false
344         security_groups:
345         - get_input: security_group_name
346         fixed_ips:
347         - ip_address:
348             get_input:
349             - cmaui_oam_ips
350             - 0
351         mac_requirements:
352           mac_count_required:
353             is_required: false
354         network_role_tag: oam
355         network:
356           get_input: oam_net_name
357       requirements:
358       - binding:
359           capability: tosca.capabilities.network.Bindable
360           node: server_cmaui21
361           relationship: tosca.relationships.network.BindsTo
362     server_cmaui2:
363       type: org.openecomp.resource.vfc.nodes.heat.cmaui
364       properties:
365         flavor:
366           get_input: cmaui_flavor
367         availability_zone:
368           get_input: availability_zone_0
369         image:
370           get_input: cmaui_image
371         metadata:
372           vnf_id:
373             get_input: vnf_id
374         user_data_format: RAW
375         name:
376           get_input:
377           - cmaui_names
378           - 0
379       requirements:
380       - local_storage:
381           capability: tosca.capabilities.Attachment
382           node: cmaui_volume2
383           relationship: cmaui_volume_attachment3
384     server_cmaui1:
385       type: org.openecomp.resource.vfc.nodes.heat.cmaui
386       properties:
387         flavor:
388           get_input: cmaui_flavor
389         availability_zone:
390           get_input: availability_zone_0
391         image:
392           get_input: cmaui_image
393         metadata:
394           vnf_id:
395             get_input: vnf_id
396         user_data_format: RAW
397         name:
398           get_input:
399           - cmaui_names
400           - 0
401       requirements:
402       - local_storage:
403           capability: tosca.capabilities.Attachment
404           node: cmaui_volume2
405           relationship: cmaui_volume_attachment2
406     cmaui_volume1:
407       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
408       properties:
409         volume_type:
410           get_input: CMAUI_volume_type
411         size: '(get_input : cmaui_cinder_volume_size) * 1024'
412     server_cmaui21:
413       type: org.openecomp.resource.vfc.nodes.heat.cmaui
414       properties:
415         flavor:
416           get_input: cmaui_flavor
417         availability_zone:
418           get_input: availability_zone_10
419         image:
420           get_input: cmaui_image
421         metadata:
422           vnf_id:
423             get_input: vnf_id
424         user_data_format: RAW
425         name:
426           get_input:
427           - cmaui_names
428           - 0
429     cmaui_volume2:
430       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
431       properties:
432         volume_type:
433           get_input: CMAUI_volume_type
434         size: '(get_input : cmaui_cinder_volume_size) * 1024'
435     cmaui_port_1:
436       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
437       properties:
438         replacement_policy: AUTO
439         ip_requirements:
440         - ip_version: 4
441           ip_count_required:
442             is_required: true
443           floating_ip_count_required:
444             is_required: false
445         security_groups:
446         - get_input: security_group_name
447         fixed_ips:
448         - ip_address:
449             get_input:
450             - cmaui_oam_ips
451             - 0
452         mac_requirements:
453           mac_count_required:
454             is_required: false
455         network_role_tag: oam
456         network:
457           get_input: oam_net_name
458       requirements:
459       - binding:
460           capability: tosca.capabilities.network.Bindable
461           node: server_cmaui1
462           relationship: tosca.relationships.network.BindsTo
463   relationship_templates:
464     cmaui_volume_attachment2:
465       type: org.openecomp.relationships.VolumeAttachesTo
466       properties:
467         volume_id:
468           get_input: cmaui_volume_param2
469         instance_uuid: server_cmaui1
470     cmaui_volume_attachment3:
471       type: org.openecomp.relationships.VolumeAttachesTo
472       properties:
473         volume_id:
474           get_input: cmaui_volume_param2
475         instance_uuid: server_cmaui2
476   groups:
477     main_group:
478       type: org.openecomp.groups.heat.HeatStack
479       properties:
480         heat_file: ../Artifacts/main.yml
481         description: volume
482       members:
483       - cmaui_port_11
484       - cmaui_volume1
485       - server_cmaui21
486       - cmaui_volume2
487     addOn_group:
488       type: org.openecomp.groups.heat.HeatStack
489       properties:
490         heat_file: ../Artifacts/addOn.yml
491         description: cmaui server template for vMMSC
492       members:
493       - cmaui_port_2
494       - server_cmaui2
495       - server_cmaui1
496       - cmaui_port_1