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