a82686f24b5f0012ff7ca6840c418aa66e63d5a1
[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         security_groups:
276         - get_input: security_group_name
277         fixed_ips:
278         - ip_address:
279             get_input:
280             - cmaui_oam_ips
281             - 0
282         mac_requirements:
283           mac_count_required:
284             is_required: false
285         network_role_tag: oam
286         network:
287           get_input: oam_net_name
288       requirements:
289       - binding:
290           capability: tosca.capabilities.network.Bindable
291           node: server_cmaui2
292           relationship: tosca.relationships.network.BindsTo
293     server_cmaui2:
294       type: org.openecomp.resource.vfc.nodes.heat.cmaui
295       properties:
296         flavor:
297           get_input: cmaui_flavor
298         availability_zone:
299           get_input: availability_zone_0
300         image:
301           get_input: cmaui_image
302         metadata:
303           vnf_id:
304             get_input: vnf_id
305         user_data_format: RAW
306         name:
307           get_input:
308           - cmaui_names
309           - 0
310       requirements:
311       - local_storage:
312           capability: tosca.capabilities.Attachment
313           node: cmaui_volume2
314           relationship: cmaui_volume_attachment3
315     server_cmaui1:
316       type: org.openecomp.resource.vfc.nodes.heat.cmaui
317       properties:
318         flavor:
319           get_input: cmaui_flavor
320         availability_zone:
321           get_input: availability_zone_0
322         image:
323           get_input: cmaui_image
324         metadata:
325           vnf_id:
326             get_input: vnf_id
327         user_data_format: RAW
328         name:
329           get_input:
330           - cmaui_names
331           - 0
332       requirements:
333       - local_storage:
334           capability: tosca.capabilities.Attachment
335           node: cmaui_volume1
336           relationship: cmaui_volume_attachment1
337       - local_storage:
338           capability: tosca.capabilities.Attachment
339           node: cmaui_volume2
340           relationship: cmaui_volume_attachment2
341     cmaui_volume1:
342       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
343       properties:
344         volume_type:
345           get_input: CMAUI_volume_type
346         size: '(get_input : cmaui_cinder_volume_size) * 1024'
347     cmaui_volume2:
348       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
349       properties:
350         volume_type:
351           get_input: CMAUI_volume_type
352         size: '(get_input : cmaui_cinder_volume_size) * 1024'
353     cmaui_port_1:
354       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
355       properties:
356         replacement_policy: AUTO
357         ip_requirements:
358         - ip_version: 4
359           ip_count_required:
360             is_required: true
361           floating_ip_count_required:
362             is_required: false
363         security_groups:
364         - get_input: security_group_name
365         fixed_ips:
366         - ip_address:
367             get_input:
368             - cmaui_oam_ips
369             - 0
370         mac_requirements:
371           mac_count_required:
372             is_required: false
373         network_role_tag: oam
374         network:
375           get_input: oam_net_name
376       requirements:
377       - binding:
378           capability: tosca.capabilities.network.Bindable
379           node: server_cmaui1
380           relationship: tosca.relationships.network.BindsTo
381   relationship_templates:
382     cmaui_volume_attachment2:
383       type: org.openecomp.relationships.VolumeAttachesTo
384       properties:
385         volume_id:
386           get_input: cmaui_volume_param2
387         instance_uuid: server_cmaui1
388     cmaui_volume_attachment3:
389       type: org.openecomp.relationships.VolumeAttachesTo
390       properties:
391         volume_id:
392           get_input: cmaui_volume_param2
393         instance_uuid: server_cmaui2
394     cmaui_volume_attachment1:
395       type: org.openecomp.relationships.VolumeAttachesTo
396       properties:
397         volume_id:
398           get_input: cmaui_volume_param1
399         instance_uuid: server_cmaui1
400   groups:
401     main_group:
402       type: org.openecomp.groups.heat.HeatStack
403       properties:
404         heat_file: ../Artifacts/main.yml
405         description: volume
406       members:
407       - cmaui_volume1
408       - cmaui_volume2
409     addOn_group:
410       type: org.openecomp.groups.heat.HeatStack
411       properties:
412         heat_file: ../Artifacts/addOn.yml
413         description: cmaui server template for vMMSC
414       members:
415       - cmaui_port_2
416       - server_cmaui2
417       - server_cmaui1
418       - cmaui_port_1