0c89037b87280c768d406ad394cdd3d66bea1528
[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             - main
36             source_type: HEAT
37             param_name: cmaui_cinder_volume_size
38       type: float
39       description: the size of the CMAUI Cinder volume
40     timezone:
41       label: timezone
42       hidden: false
43       immutable: false
44       annotations:
45         source:
46           type: org.openecomp.annotations.Source
47           properties:
48             vf_module_label:
49             - main
50             source_type: HEAT
51             param_name: timezone
52       type: string
53       description: timezone
54     security_group_name:
55       label: security group name
56       hidden: false
57       immutable: false
58       annotations:
59         source:
60           type: org.openecomp.annotations.Source
61           properties:
62             vf_module_label:
63             - main
64             source_type: HEAT
65             param_name: security_group_name
66       type: string
67       description: the name of security group
68     oam_network_netmask:
69       label: oam network netmask
70       hidden: false
71       immutable: false
72       annotations:
73         source:
74           type: org.openecomp.annotations.Source
75           properties:
76             vf_module_label:
77             - main
78             source_type: HEAT
79             param_name: oam_network_netmask
80       type: string
81       description: oam network gateway
82     cmaui_image:
83       hidden: false
84       immutable: false
85       annotations:
86         source:
87           type: org.openecomp.annotations.Source
88           properties:
89             vf_module_label:
90             - main
91             source_type: HEAT
92             param_name: cmaui_image
93       type: string
94       description: Image for CMAUI server
95     vnf_id:
96       hidden: false
97       immutable: false
98       annotations:
99         source:
100           type: org.openecomp.annotations.Source
101           properties:
102             vf_module_label:
103             - main
104             source_type: HEAT
105             param_name: vnf_id
106       type: string
107       description: Unique ID for this VNF instance
108       default: This_is_ths_MMSC-CMAUI_id
109     cmaui_flavor:
110       hidden: false
111       immutable: false
112       annotations:
113         source:
114           type: org.openecomp.annotations.Source
115           properties:
116             vf_module_label:
117             - main
118             source_type: HEAT
119             param_name: cmaui_flavor
120       type: string
121       description: Flavor for CMAUI server
122     oam_network_gateway:
123       label: oam network gateway
124       hidden: false
125       immutable: false
126       annotations:
127         source:
128           type: org.openecomp.annotations.Source
129           properties:
130             vf_module_label:
131             - main
132             source_type: HEAT
133             param_name: oam_network_gateway
134       type: string
135       description: oam network gateway
136     availability_zone_0:
137       label: availabilityzone name
138       hidden: false
139       immutable: false
140       annotations:
141         source:
142           type: org.openecomp.annotations.Source
143           properties:
144             vf_module_label:
145             - main
146             source_type: HEAT
147             param_name: availability_zone_0
148       type: string
149       description: availabilityzone name
150     inner_cmaui_volume_a2:
151       hidden: false
152       immutable: false
153       annotations:
154         source:
155           type: org.openecomp.annotations.Source
156           properties:
157             vf_module_label:
158             - main
159             source_type: HEAT
160             param_name: inner_cmaui_volume_a2
161       type: string
162       description: Unique ID for this VNF instance
163       default: This_is_ths_MMSC-CMAUI_id
164     inner_cmaui_volume_b3:
165       hidden: false
166       immutable: false
167       annotations:
168         source:
169           type: org.openecomp.annotations.Source
170           properties:
171             vf_module_label:
172             - main
173             source_type: HEAT
174             param_name: inner_cmaui_volume_b3
175       type: list
176       entry_schema:
177         type: string
178     inner_cmaui_volume_a1:
179       hidden: false
180       immutable: false
181       annotations:
182         source:
183           type: org.openecomp.annotations.Source
184           properties:
185             vf_module_label:
186             - main
187             source_type: HEAT
188             param_name: inner_cmaui_volume_a1
189       type: string
190       description: Unique ID for this VNF instance
191       default: This_is_ths_MMSC-CMAUI_id
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             - main
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             - main
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             - main
231             source_type: HEAT
232             param_name: oam_net_name
233       type: string
234       description: UID of OAM network
235     external_ntp:
236       label: ntp server
237       hidden: false
238       immutable: false
239       annotations:
240         source:
241           type: org.openecomp.annotations.Source
242           properties:
243             vf_module_label:
244             - main
245             source_type: HEAT
246             param_name: external_ntp
247       type: string
248       description: ntp server
249     CMAUI_volume_type:
250       label: CMAUI vm volume type
251       hidden: false
252       immutable: false
253       annotations:
254         source:
255           type: org.openecomp.annotations.Source
256           properties:
257             vf_module_label:
258             - main
259             source_type: HEAT
260             param_name: CMAUI_volume_type
261       type: string
262       description: the name of the target volume backend
263   node_templates:
264     stam_nested:
265       type: org.openecomp.resource.abstract.nodes.heat.nested
266       directives:
267       - substitutable
268       properties:
269         service_template_filter:
270           substitute_service_template: nestedServiceTemplate.yaml
271         inner_cmaui_volume_b3:
272           get_input:
273           - inner_cmaui_volume_b3
274           - 0
275         inner_cmaui_volume_a1:
276           get_input: inner_cmaui_volume_a1
277         inner_cmaui_volume_b2:
278           get_input: inner_cmaui_volume_a2
279       requirements:
280       - local_storage_server_cmaui2:
281           capability: tosca.capabilities.Attachment
282           node: cmaui_volume2
283           relationship: tosca.relationships.AttachesTo
284       - local_storage_server_cmaui1:
285           capability: tosca.capabilities.Attachment
286           node: inner_cmaui_volume_a1
287           relationship: tosca.relationships.AttachesTo
288       - local_storage_server_cmaui1:
289           capability: tosca.capabilities.Attachment
290           node: cmaui_volume2
291           relationship: tosca.relationships.AttachesTo
292     inner_cmaui_volume_a1:
293       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
294       properties:
295         volume_type:
296           get_input: CMAUI_volume_type
297         size: '(get_input : cmaui_cinder_volume_size) * 1024'
298     cmaui_volume2:
299       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
300       properties:
301         volume_type:
302           get_input: CMAUI_volume_type
303         size: '(get_input : cmaui_cinder_volume_size) * 1024'
304   groups:
305     main_group:
306       type: org.openecomp.groups.heat.HeatStack
307       properties:
308         heat_file: ../Artifacts/main.yml
309         description: cmaui server template for vMMSC
310       members:
311       - stam_nested
312     a_vol_group:
313       type: org.openecomp.groups.heat.HeatStack
314       properties:
315         heat_file: ../Artifacts/a_vol.yml
316         description: volume
317       members:
318       - inner_cmaui_volume_a1
319       - cmaui_volume2
320   outputs:
321     inner_cmaui_volume_a2:
322       value: cmaui_volume2
323     inner_cmaui_volume_b3:
324       value: inner_cmaui_volume_a1
325     inner_cmaui_volume_a1:
326       value: inner_cmaui_volume_a1