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