4e1a8fb538f7d57dade79e6e26f692c6dd1a1e79
[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             - hot_template
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     exposed_cmaui_volume:
28       label: CMAUI 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             - hot_template
37             source_type: HEAT
38             param_name: exposed_cmaui_volume
39       type: float
40       description: the size of the CMAUI volume
41     cmaui_cinder_volume_size:
42       label: CMAUI Cinder volume size
43       hidden: false
44       immutable: false
45       annotations:
46         source:
47           type: org.openecomp.annotations.Source
48           properties:
49             vf_module_label:
50             - a_vol
51             - hot_template
52             source_type: HEAT
53             param_name: cmaui_cinder_volume_size
54       type: float
55       description: the size of the CMAUI Cinder volume
56     timezone:
57       label: timezone
58       hidden: false
59       immutable: false
60       annotations:
61         source:
62           type: org.openecomp.annotations.Source
63           properties:
64             vf_module_label:
65             - hot_template
66             source_type: HEAT
67             param_name: timezone
68       type: string
69       description: timezone
70     security_group_name:
71       label: security group 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_template
80             source_type: HEAT
81             param_name: security_group_name
82       type: string
83       description: the name of security group
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             - hot_template
94             source_type: HEAT
95             param_name: oam_network_netmask
96       type: string
97       description: oam network gateway
98     cmaui_image:
99       hidden: false
100       immutable: false
101       annotations:
102         source:
103           type: org.openecomp.annotations.Source
104           properties:
105             vf_module_label:
106             - hot_template
107             source_type: HEAT
108             param_name: cmaui_image
109       type: string
110       description: Image for CMAUI server
111     vnf_id:
112       hidden: false
113       immutable: false
114       annotations:
115         source:
116           type: org.openecomp.annotations.Source
117           properties:
118             vf_module_label:
119             - hot_template
120             source_type: HEAT
121             param_name: vnf_id
122       type: string
123       description: Unique ID for this VNF instance
124       default: This_is_ths_MMSC-CMAUI_id
125     cmaui_flavor:
126       hidden: false
127       immutable: false
128       annotations:
129         source:
130           type: org.openecomp.annotations.Source
131           properties:
132             vf_module_label:
133             - hot_template
134             source_type: HEAT
135             param_name: cmaui_flavor
136       type: string
137       description: Flavor for CMAUI server
138     oam_network_gateway:
139       label: oam network gateway
140       hidden: false
141       immutable: false
142       annotations:
143         source:
144           type: org.openecomp.annotations.Source
145           properties:
146             vf_module_label:
147             - hot_template
148             source_type: HEAT
149             param_name: oam_network_gateway
150       type: string
151       description: oam network gateway
152     availability_zone_0:
153       label: availabilityzone name
154       hidden: false
155       immutable: false
156       annotations:
157         source:
158           type: org.openecomp.annotations.Source
159           properties:
160             vf_module_label:
161             - hot_template
162             source_type: HEAT
163             param_name: availability_zone_0
164       type: string
165       description: availabilityzone name
166     cmaui_oam_ips:
167       label: CMAUI oam_net IP addresses
168       hidden: false
169       immutable: false
170       annotations:
171         source:
172           type: org.openecomp.annotations.Source
173           properties:
174             vf_module_label:
175             - hot_template
176             source_type: HEAT
177             param_name: cmaui_oam_ips
178       type: list
179       description: CMAUI oam_net IP addresses
180       entry_schema:
181         type: string
182     external_dns:
183       label: dns server
184       hidden: false
185       immutable: false
186       annotations:
187         source:
188           type: org.openecomp.annotations.Source
189           properties:
190             vf_module_label:
191             - hot_template
192             source_type: HEAT
193             param_name: external_dns
194       type: string
195       description: dns server
196     oam_net_name:
197       hidden: false
198       immutable: false
199       annotations:
200         source:
201           type: org.openecomp.annotations.Source
202           properties:
203             vf_module_label:
204             - hot_template
205             source_type: HEAT
206             param_name: oam_net_name
207       type: string
208       description: UID of OAM network
209     external_ntp:
210       label: ntp server
211       hidden: false
212       immutable: false
213       annotations:
214         source:
215           type: org.openecomp.annotations.Source
216           properties:
217             vf_module_label:
218             - hot_template
219             source_type: HEAT
220             param_name: external_ntp
221       type: string
222       description: ntp server
223     CMAUI_volume_type:
224       label: CMAUI vm volume type
225       hidden: false
226       immutable: false
227       annotations:
228         source:
229           type: org.openecomp.annotations.Source
230           properties:
231             vf_module_label:
232             - a_vol
233             - hot_template
234             source_type: HEAT
235             param_name: CMAUI_volume_type
236       type: string
237       description: the name of the target volume backend
238   node_templates:
239     server_cmaui:
240       type: org.openecomp.resource.vfc.nodes.heat.cmaui
241       properties:
242         flavor:
243           get_input: cmaui_flavor
244         availability_zone:
245           get_input: availability_zone_0
246         image:
247           get_input: cmaui_image
248         metadata:
249           vnf_id:
250             get_input: vnf_id
251         user_data_format: RAW
252         name:
253           get_input:
254           - cmaui_names
255           - 0
256       requirements:
257       - local_storage:
258           capability: tosca.capabilities.Attachment
259           node: cmaui_volume
260           relationship: cmaui_volume_attachment
261     cmaui_volume:
262       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
263       properties:
264         volume_type:
265           get_input: CMAUI_volume_type
266         size: '(get_input : cmaui_cinder_volume_size) * 1024'
267     cmaui_port_0:
268       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
269       properties:
270         replacement_policy: AUTO
271         ip_requirements:
272         - ip_version: 4
273           ip_count_required:
274             is_required: true
275           floating_ip_count_required:
276             is_required: false
277         - ip_version: 6
278           ip_count_required:
279             is_required: false
280           floating_ip_count_required:
281             is_required: false
282         security_groups:
283         - get_input: security_group_name
284         fixed_ips:
285         - ip_address:
286             get_input:
287             - cmaui_oam_ips
288             - 0
289         mac_requirements:
290           mac_count_required:
291             is_required: false
292         network_role_tag: oam
293         network:
294           get_input: oam_net_name
295       requirements:
296       - binding:
297           capability: tosca.capabilities.network.Bindable
298           node: server_cmaui
299           relationship: tosca.relationships.network.BindsTo
300   relationship_templates:
301     cmaui_volume_attachment:
302       type: org.openecomp.relationships.VolumeAttachesTo
303       properties:
304         volume_id: cmaui_volume
305         instance_uuid: server_cmaui
306   groups:
307     a_vol_group:
308       type: org.openecomp.groups.heat.HeatStack
309       properties:
310         heat_file: ../Artifacts/a_vol.yml
311         description: volume
312       members:
313       - cmaui_volume
314     hot_template_group:
315       type: org.openecomp.groups.heat.HeatStack
316       properties:
317         heat_file: ../Artifacts/hot_template.yml
318         description: cmaui server template for vMMSC
319       members:
320       - server_cmaui
321       - cmaui_port_0
322   outputs:
323     exposed_cmaui_volume:
324       value: cmaui_volume