1ee4e28abdf81ed5b2e76a3016e7b5c7675e8f56
[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     server_cmaui:
70       label: CMAUI server name
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: server_cmaui
81       type: string
82       description: the name of the cmaui server
83     oam_network_netmask:
84       label: oam network netmask
85       hidden: false
86       immutable: false
87       annotations:
88         source:
89           type: org.openecomp.annotations.Source
90           properties:
91             vf_module_label:
92             - hot_template
93             source_type: HEAT
94             param_name: oam_network_netmask
95       type: string
96       description: oam network gateway
97     cmaui_image:
98       hidden: false
99       immutable: false
100       annotations:
101         source:
102           type: org.openecomp.annotations.Source
103           properties:
104             vf_module_label:
105             - hot_template
106             source_type: HEAT
107             param_name: cmaui_image
108       type: string
109       description: Image for CMAUI server
110     vnf_id:
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: vnf_id
121       type: string
122       description: Unique ID for this VNF instance
123       default: This_is_ths_MMSC-CMAUI_id
124     cmaui_flavor:
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: cmaui_flavor
135       type: string
136       description: Flavor for CMAUI server
137     oam_network_gateway:
138       label: oam network gateway
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: oam_network_gateway
149       type: string
150       description: oam network gateway
151     availability_zone_0:
152       label: availabilityzone name
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: availability_zone_0
163       type: string
164       description: availabilityzone name
165     cmaui_oam_ips:
166       label: CMAUI oam_net IP addresses
167       hidden: false
168       immutable: false
169       annotations:
170         source:
171           type: org.openecomp.annotations.Source
172           properties:
173             vf_module_label:
174             - hot_template
175             source_type: HEAT
176             param_name: cmaui_oam_ips
177       type: list
178       description: CMAUI oam_net IP addresses
179       entry_schema:
180         type: string
181     external_dns:
182       label: dns server
183       hidden: false
184       immutable: false
185       annotations:
186         source:
187           type: org.openecomp.annotations.Source
188           properties:
189             vf_module_label:
190             - hot_template
191             source_type: HEAT
192             param_name: external_dns
193       type: string
194       description: dns server
195     oam_net_name:
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: oam_net_name
206       type: string
207       description: UID of OAM network
208     external_ntp:
209       label: ntp server
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: external_ntp
220       type: string
221       description: ntp server
222     CMAUI_volume_type:
223       label: CMAUI vm volume type
224       hidden: false
225       immutable: false
226       annotations:
227         source:
228           type: org.openecomp.annotations.Source
229           properties:
230             vf_module_label:
231             - hot_template
232             source_type: HEAT
233             param_name: CMAUI_volume_type
234       type: string
235       description: the name of the target volume backend
236   node_templates:
237     server_cmaui:
238       type: org.openecomp.resource.vfc.nodes.heat.cmaui
239       properties:
240         flavor:
241           get_input: cmaui_flavor
242         availability_zone:
243           get_input: availability_zone_0
244         image:
245           get_input: cmaui_image
246         metadata:
247           vnf_id:
248             get_input: vnf_id
249         user_data_format: RAW
250         name:
251           get_input:
252           - cmaui_names
253           - 0
254       requirements:
255       - local_storage:
256           capability: tosca.capabilities.Attachment
257           node: cmaui_volume
258           relationship: cmaui_volume_attachment
259     cmaui_volume:
260       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
261       properties:
262         volume_type:
263           get_input: CMAUI_volume_type
264         size: '(get_input : cmaui_cinder_volume_size) * 1024'
265     cmaui_port_0:
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         - ip_version: 6
276           ip_count_required:
277             is_required: false
278           floating_ip_count_required:
279             is_required: false
280         security_groups:
281         - get_input: security_group_name
282         fixed_ips:
283         - ip_address:
284             get_input:
285             - cmaui_oam_ips
286             - 0
287         mac_requirements:
288           mac_count_required:
289             is_required: false
290         network_role_tag: oam
291         network:
292           get_input: oam_net_name
293       requirements:
294       - binding:
295           capability: tosca.capabilities.network.Bindable
296           node: server_cmaui
297           relationship: tosca.relationships.network.BindsTo
298   relationship_templates:
299     cmaui_volume_attachment:
300       type: org.openecomp.relationships.VolumeAttachesTo
301       properties:
302         volume_id: cmaui_volume
303         instance_uuid: server_cmaui
304   groups:
305     hot_template_group:
306       type: org.openecomp.groups.heat.HeatStack
307       properties:
308         heat_file: ../Artifacts/hot_template.yml
309         description: cmaui server template for vMMSC
310       members:
311       - server_cmaui
312       - cmaui_volume
313       - cmaui_port_0