0f6b7e72c0f4c91a392b72076c046705b44c9e59
[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 - GlobalSubstitutionTypes:
8     file: GlobalSubstitutionTypesServiceTemplate.yaml
9 topology_template:
10   inputs:
11     cmaui_names:
12       hidden: false
13       immutable: false
14       annotations:
15         source:
16           type: org.openecomp.annotations.Source
17           properties:
18             vf_module_label:
19             - main
20             source_type: HEAT
21             param_name: cmaui_names
22       type: list
23       description: CMAUI1, CMAUI2 server names
24       entry_schema:
25         type: string
26     cmaui_cinder_volume_size:
27       label: CMAUI Cinder volume size
28       hidden: false
29       immutable: false
30       annotations:
31         source:
32           type: org.openecomp.annotations.Source
33           properties:
34             vf_module_label:
35             - a_vol
36             - main
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             - main
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             - main
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             - main
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             - main
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             - main
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             - main
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             - main
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             - main
147             source_type: HEAT
148             param_name: availability_zone_0
149       type: string
150       description: availabilityzone name
151     inner_cmaui_volume_a2:
152       hidden: false
153       immutable: false
154       annotations:
155         source:
156           type: org.openecomp.annotations.Source
157           properties:
158             vf_module_label:
159             - main
160             source_type: HEAT
161             param_name: inner_cmaui_volume_a2
162       type: string
163       description: Unique ID for this VNF instance
164       default: This_is_ths_MMSC-CMAUI_id
165     inner_cmaui_volume_b3:
166       hidden: false
167       immutable: false
168       annotations:
169         source:
170           type: org.openecomp.annotations.Source
171           properties:
172             vf_module_label:
173             - main
174             source_type: HEAT
175             param_name: inner_cmaui_volume_b3
176       type: list
177       entry_schema:
178         type: string
179     inner_cmaui_volume_a1:
180       hidden: false
181       immutable: false
182       annotations:
183         source:
184           type: org.openecomp.annotations.Source
185           properties:
186             vf_module_label:
187             - main
188             source_type: HEAT
189             param_name: inner_cmaui_volume_a1
190       type: string
191       description: Unique ID for this VNF instance
192       default: This_is_ths_MMSC-CMAUI_id
193     cmaui_oam_ips:
194       label: CMAUI oam_net IP addresses
195       hidden: false
196       immutable: false
197       annotations:
198         source:
199           type: org.openecomp.annotations.Source
200           properties:
201             vf_module_label:
202             - main
203             source_type: HEAT
204             param_name: cmaui_oam_ips
205       type: list
206       description: CMAUI oam_net IP addresses
207       entry_schema:
208         type: string
209     external_dns:
210       label: dns server
211       hidden: false
212       immutable: false
213       annotations:
214         source:
215           type: org.openecomp.annotations.Source
216           properties:
217             vf_module_label:
218             - main
219             source_type: HEAT
220             param_name: external_dns
221       type: string
222       description: dns server
223     oam_net_name:
224       hidden: false
225       immutable: false
226       annotations:
227         source:
228           type: org.openecomp.annotations.Source
229           properties:
230             vf_module_label:
231             - main
232             source_type: HEAT
233             param_name: oam_net_name
234       type: string
235       description: UID of OAM network
236     external_ntp:
237       label: ntp server
238       hidden: false
239       immutable: false
240       annotations:
241         source:
242           type: org.openecomp.annotations.Source
243           properties:
244             vf_module_label:
245             - main
246             source_type: HEAT
247             param_name: external_ntp
248       type: string
249       description: ntp server
250     CMAUI_volume_type:
251       label: CMAUI vm volume type
252       hidden: false
253       immutable: false
254       annotations:
255         source:
256           type: org.openecomp.annotations.Source
257           properties:
258             vf_module_label:
259             - a_vol
260             - main
261             source_type: HEAT
262             param_name: CMAUI_volume_type
263       type: string
264       description: the name of the target volume backend
265   node_templates:
266     stam_nested:
267       type: org.openecomp.resource.abstract.nodes.heat.nested
268       directives:
269       - substitutable
270       properties:
271         service_template_filter:
272           substitute_service_template: nestedServiceTemplate.yaml
273         inner_cmaui_volume_b3:
274           get_input:
275           - inner_cmaui_volume_b3
276           - 0
277         inner_cmaui_volume_a1:
278           get_input: inner_cmaui_volume_a1
279         inner_cmaui_volume_b2:
280           get_input: inner_cmaui_volume_a2
281       requirements:
282       - local_storage_server_cmaui2:
283           capability: tosca.capabilities.Attachment
284           node: cmaui_volume2
285           relationship: tosca.relationships.AttachesTo
286       - local_storage_server_cmaui1:
287           capability: tosca.capabilities.Attachment
288           node: inner_cmaui_volume_a1
289           relationship: tosca.relationships.AttachesTo
290       - local_storage_server_cmaui1:
291           capability: tosca.capabilities.Attachment
292           node: cmaui_volume2
293           relationship: tosca.relationships.AttachesTo
294     inner_cmaui_volume_a1:
295       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
296       properties:
297         volume_type:
298           get_input: CMAUI_volume_type
299         size: '(get_input : cmaui_cinder_volume_size) * 1024'
300     cmaui_volume2:
301       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
302       properties:
303         volume_type:
304           get_input: CMAUI_volume_type
305         size: '(get_input : cmaui_cinder_volume_size) * 1024'
306   groups:
307     main_group:
308       type: org.openecomp.groups.heat.HeatStack
309       properties:
310         heat_file: ../Artifacts/main.yml
311         description: cmaui server template for vMMSC
312       members:
313       - stam_nested
314     a_vol_group:
315       type: org.openecomp.groups.heat.HeatStack
316       properties:
317         heat_file: ../Artifacts/a_vol.yml
318         description: volume
319       members:
320       - inner_cmaui_volume_a1
321       - cmaui_volume2
322   outputs:
323     inner_cmaui_volume_a2:
324       value: cmaui_volume2
325     inner_cmaui_volume_b3:
326       value: inner_cmaui_volume_a1
327     inner_cmaui_volume_a1:
328       value: inner_cmaui_volume_a1