4d2d07966a33611fccbe83a9a1bb6d7beea0db9b
[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 node_types:
10   org.openecomp.resource.vfc.nodes.heat.cmaui:
11     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
12 topology_template:
13   inputs:
14     cmaui_names:
15       hidden: false
16       immutable: false
17       annotations:
18         source:
19           type: org.openecomp.annotations.Source
20           properties:
21             vf_module_label:
22             - main
23             source_type: HEAT
24             param_name: cmaui_names
25       type: list
26       description: CMAUI1, CMAUI2 server names
27       entry_schema:
28         type: string
29     p1:
30       hidden: false
31       immutable: false
32       annotations:
33         source:
34           type: org.openecomp.annotations.Source
35           properties:
36             vf_module_label:
37             - main
38             source_type: HEAT
39             param_name: p1
40       type: string
41       description: UID of OAM network
42     cmaui_image:
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: cmaui_image
53       type: string
54       description: Image for CMAUI server
55     cmaui_flavor:
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: cmaui_flavor
66       type: string
67       description: Flavor for CMAUI server
68     cmaui_cinder_volume_size:
69       label: CMAUI Cinder volume size
70       hidden: false
71       immutable: false
72       annotations:
73         source:
74           type: org.openecomp.annotations.Source
75           properties:
76             vf_module_label:
77             - addOn
78             - main
79             source_type: HEAT
80             param_name: cmaui_cinder_volume_size
81       type: float
82       description: the size of the CMAUI Cinder volume
83     security_group_name:
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: security_group_name
94       type: list
95       description: CMAUI1, CMAUI2 server names
96       entry_schema:
97         type: string
98     availability_zone_0:
99       label: availabilityzone name
100       hidden: false
101       immutable: false
102       annotations:
103         source:
104           type: org.openecomp.annotations.Source
105           properties:
106             vf_module_label:
107             - main
108             source_type: HEAT
109             param_name: availability_zone_0
110       type: string
111       description: availabilityzone name
112     shared_vol1:
113       hidden: false
114       immutable: false
115       annotations:
116         source:
117           type: org.openecomp.annotations.Source
118           properties:
119             vf_module_label:
120             - addOn
121             source_type: HEAT
122             param_name: shared_vol1
123       type: string
124       description: volume name
125     cmaui_oam_ips:
126       hidden: false
127       immutable: false
128       annotations:
129         source:
130           type: org.openecomp.annotations.Source
131           properties:
132             vf_module_label:
133             - main
134             source_type: HEAT
135             param_name: cmaui_oam_ips
136       type: string
137     shared_vol2:
138       hidden: false
139       immutable: false
140       annotations:
141         source:
142           type: org.openecomp.annotations.Source
143           properties:
144             vf_module_label:
145             - addOn
146             source_type: HEAT
147             param_name: shared_vol2
148       type: string
149       description: volume name
150     CMAUI_volume_type:
151       label: CMAUI vm volume type
152       hidden: false
153       immutable: false
154       annotations:
155         source:
156           type: org.openecomp.annotations.Source
157           properties:
158             vf_module_label:
159             - addOn
160             - main
161             source_type: HEAT
162             param_name: CMAUI_volume_type
163       type: string
164       description: the name of the target volume backend
165   node_templates:
166     test_vol1:
167       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
168       properties:
169         volume_type:
170           get_input: CMAUI_volume_type
171         size: '(get_input : cmaui_cinder_volume_size) * 1024'
172     test_vol2:
173       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
174       properties:
175         volume_type:
176           get_input: CMAUI_volume_type
177         size: '(get_input : cmaui_cinder_volume_size) * 1024'
178     server_cmaui:
179       type: org.openecomp.resource.vfc.nodes.heat.cmaui
180       properties:
181         flavor:
182           get_input: cmaui_flavor
183         availability_zone:
184           get_input: availability_zone_0
185         image:
186           get_input: cmaui_image
187         name:
188           get_input:
189           - cmaui_names
190           - 0
191     cmaui_port_0:
192       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
193       properties:
194         replacement_policy: AUTO
195         ip_requirements:
196         - ip_version: 4
197           ip_count_required:
198             is_required: true
199           floating_ip_count_required:
200             is_required: false
201         - ip_version: 6
202           ip_count_required:
203             is_required: false
204           floating_ip_count_required:
205             is_required: false
206         security_groups:
207         - get_input: security_group_name
208         fixed_ips:
209         - ip_address:
210             get_input:
211             - cmaui_oam_ips
212             - 0
213         mac_requirements:
214           mac_count_required:
215             is_required: false
216         network:
217           get_input: p1
218       requirements:
219       - binding:
220           capability: tosca.capabilities.network.Bindable
221           node: server_cmaui
222           relationship: tosca.relationships.network.BindsTo
223     test_nested:
224       type: org.openecomp.resource.abstract.nodes.heat.nested
225       directives:
226       - substitutable
227       properties:
228         service_template_filter:
229           substitute_service_template: nestedServiceTemplate.yaml
230         cmaui_volume_param2:
231           get_input: shared_vol2
232         shared_vol1:
233           get_input: shared_vol1
234       requirements:
235       - local_storage_server_cmaui1:
236           capability: tosca.capabilities.Attachment
237           node: test_vol2
238           relationship: tosca.relationships.AttachesTo
239   groups:
240     main_group:
241       type: org.openecomp.groups.heat.HeatStack
242       properties:
243         heat_file: ../Artifacts/main.yml
244         description: |
245           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
246       members:
247       - test_vol1
248       - test_vol2
249       - server_cmaui
250       - cmaui_port_0
251     addOn_group:
252       type: org.openecomp.groups.heat.HeatStack
253       properties:
254         heat_file: ../Artifacts/addOn.yml
255         description: |
256           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
257       members:
258       - test_nested
259   outputs:
260     out1_not_shared:
261       value: test_nested