773101be160c65b1cf2ffd7e052bd85173270a83
[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     p2:
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: p2
22       type: string
23       description: shared_vol2
24     cmaui_cinder_volume_size:
25       hidden: false
26       immutable: false
27       annotations:
28         source:
29           type: org.openecomp.annotations.Source
30           properties:
31             vf_module_label:
32             - vol_b
33             - vol_a
34             - main
35             source_type: HEAT
36             param_name: cmaui_cinder_volume_size
37       type: string
38     exposed_vol1:
39       hidden: false
40       immutable: false
41       annotations:
42         source:
43           type: org.openecomp.annotations.Source
44           properties:
45             vf_module_label:
46             - main
47             source_type: HEAT
48             param_name: exposed_vol1
49       type: string
50     contrail_net_name:
51       hidden: false
52       immutable: false
53       annotations:
54         source:
55           type: org.openecomp.annotations.Source
56           properties:
57             vf_module_label:
58             - vol_b
59             - vol_a
60             - main
61             source_type: HEAT
62             param_name: contrail_net_name
63       type: string
64       description: network name of jsa log network
65     CMAUI_volume_type:
66       hidden: false
67       immutable: false
68       annotations:
69         source:
70           type: org.openecomp.annotations.Source
71           properties:
72             vf_module_label:
73             - vol_b
74             - vol_a
75             - main
76             source_type: HEAT
77             param_name: CMAUI_volume_type
78       type: string
79     jsa_name:
80       hidden: false
81       immutable: false
82       annotations:
83         source:
84           type: org.openecomp.annotations.Source
85           properties:
86             vf_module_label:
87             - vol_b
88             - vol_a
89             - main
90             source_type: HEAT
91             param_name: jsa_name
92       type: string
93       description: network name of jsa log network
94   node_templates:
95     test_nested1Level:
96       type: org.openecomp.resource.abstract.nodes.heat.nested1
97       directives:
98       - substitutable
99       properties:
100         p1:
101           get_input: exposed_vol1
102         service_template_filter:
103           substitute_service_template: nested1ServiceTemplate.yaml
104         p2:
105           get_input: p2
106       requirements:
107       - local_storage_server_cmaui2:
108           capability: tosca.capabilities.Attachment
109           node: test_vol1
110           relationship: tosca.relationships.AttachesTo
111       - local_storage_server_cmaui1:
112           capability: tosca.capabilities.Attachment
113           node: test_vol1
114           relationship: tosca.relationships.AttachesTo
115       - local_storage_server_cmaui1:
116           capability: tosca.capabilities.Attachment
117           node: test_vol2
118           relationship: tosca.relationships.AttachesTo
119       - local_storage_server_cmaui4_test_nested2Level:
120           capability: tosca.capabilities.Attachment
121           node: test_vol1
122           relationship: tosca.relationships.AttachesTo
123       - local_storage_server_cmaui3_test_nested2Level:
124           capability: tosca.capabilities.Attachment
125           node: test_vol1
126           relationship: tosca.relationships.AttachesTo
127       - local_storage_server_cmaui3_test_nested2Level:
128           capability: tosca.capabilities.Attachment
129           node: test_vol2
130           relationship: tosca.relationships.AttachesTo
131       - local_storage_server_cmaui6_test_nested3Level_test_nested2Level:
132           capability: tosca.capabilities.Attachment
133           node: test_vol1
134           relationship: tosca.relationships.AttachesTo
135       - local_storage_server_cmaui8_test_nested4Level_test_nested3Level_test_nested2Level:
136           capability: tosca.capabilities.Attachment
137           node: test_vol1
138           relationship: tosca.relationships.AttachesTo
139       - local_storage_server_cmaui7_test_nested4Level_test_nested3Level_test_nested2Level:
140           capability: tosca.capabilities.Attachment
141           node: test_vol1
142           relationship: tosca.relationships.AttachesTo
143       - local_storage_server_cmaui7_test_nested4Level_test_nested3Level_test_nested2Level:
144           capability: tosca.capabilities.Attachment
145           node: test_vol1
146           relationship: tosca.relationships.AttachesTo
147       - local_storage_server_cmaui5_test_nested3Level_test_nested2Level:
148           capability: tosca.capabilities.Attachment
149           node: test_vol1
150           relationship: tosca.relationships.AttachesTo
151       - local_storage_server_cmaui5_test_nested3Level_test_nested2Level:
152           capability: tosca.capabilities.Attachment
153           node: test_vol1
154           relationship: tosca.relationships.AttachesTo
155     test_vol1:
156       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
157       properties:
158         volume_type:
159           get_input: CMAUI_volume_type
160         size: '(get_input : cmaui_cinder_volume_size) * 1024'
161     test_resourceGroup:
162       type: org.openecomp.resource.abstract.nodes.heat.nested3
163       directives:
164       - substitutable
165       properties:
166         p1:
167           get_input: exposed_vol1
168         service_template_filter:
169           substitute_service_template: nested3ServiceTemplate.yaml
170           count: 9
171           mandatory: true
172         indx:
173           get_property:
174           - SELF
175           - service_template_filter
176           - index_value
177       requirements:
178       - local_storage_server_cmaui7_test_nested4Level:
179           capability: tosca.capabilities.Attachment
180           node: test_vol1
181           relationship: tosca.relationships.AttachesTo
182       - local_storage_server_cmaui5:
183           capability: tosca.capabilities.Attachment
184           node: test_vol1
185           relationship: tosca.relationships.AttachesTo
186     test_vol2:
187       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
188       properties:
189         volume_type:
190           get_input: CMAUI_volume_type
191         size: '(get_input : cmaui_cinder_volume_size) * 1024'
192   groups:
193     main_group:
194       type: org.openecomp.groups.heat.HeatStack
195       properties:
196         heat_file: ../Artifacts/main.yml
197         description: |
198           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
199       members:
200       - test_nested1Level
201       - test_resourceGroup
202     vol_b_group:
203       type: org.openecomp.groups.heat.HeatStack
204       properties:
205         heat_file: ../Artifacts/vol_b.yml
206         description: |
207           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
208       members:
209       - test_vol2
210     vol_a_group:
211       type: org.openecomp.groups.heat.HeatStack
212       properties:
213         heat_file: ../Artifacts/vol_a.yml
214         description: |
215           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
216       members:
217       - test_vol1
218   outputs:
219     p2:
220       value: test_vol2
221     exposed_vol1:
222       value: test_vol1