b48a12fabbcf083041416b0915fcee1851c8beba
[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     cmaui_cinder_volume_size:
15       hidden: false
16       immutable: false
17       type: string
18     contrail_net_name:
19       hidden: false
20       immutable: false
21       type: string
22       description: network name of jsa log network
23     CMAUI_volume_type:
24       hidden: false
25       immutable: false
26       type: string
27     jsa_name:
28       hidden: false
29       immutable: false
30       type: string
31       description: network name of jsa log network
32   node_templates:
33     test_nested1Level:
34       type: org.openecomp.resource.abstract.nodes.heat.nested1
35       directives:
36       - substitutable
37       properties:
38         p1: test_vol1
39         service_template_filter:
40           substitute_service_template: nested1ServiceTemplate.yaml
41         p2: test_vol2
42       requirements:
43       - local_storage_server_cmaui2:
44           capability: tosca.capabilities.Attachment
45           node: test_vol1
46           relationship: tosca.relationships.AttachesTo
47       - local_storage_server_cmaui1:
48           capability: tosca.capabilities.Attachment
49           node: test_vol1
50           relationship: tosca.relationships.AttachesTo
51       - local_storage_server_cmaui1:
52           capability: tosca.capabilities.Attachment
53           node: test_vol2
54           relationship: tosca.relationships.AttachesTo
55       - local_storage_server_cmaui4_test_nested2Level:
56           capability: tosca.capabilities.Attachment
57           node: test_vol1
58           relationship: tosca.relationships.AttachesTo
59       - local_storage_server_cmaui3_test_nested2Level:
60           capability: tosca.capabilities.Attachment
61           node: test_vol1
62           relationship: tosca.relationships.AttachesTo
63       - local_storage_server_cmaui3_test_nested2Level:
64           capability: tosca.capabilities.Attachment
65           node: test_vol2
66           relationship: tosca.relationships.AttachesTo
67       - local_storage_server_cmaui6_test_nested3Level_test_nested2Level:
68           capability: tosca.capabilities.Attachment
69           node: test_vol1
70           relationship: tosca.relationships.AttachesTo
71       - local_storage_server_cmaui8_test_nested4Level_test_nested3Level_test_nested2Level:
72           capability: tosca.capabilities.Attachment
73           node: test_vol1
74           relationship: tosca.relationships.AttachesTo
75       - local_storage_server_cmaui7_test_nested4Level_test_nested3Level_test_nested2Level:
76           capability: tosca.capabilities.Attachment
77           node: test_vol1
78           relationship: tosca.relationships.AttachesTo
79       - local_storage_server_cmaui7_test_nested4Level_test_nested3Level_test_nested2Level:
80           capability: tosca.capabilities.Attachment
81           node: test_vol1
82           relationship: tosca.relationships.AttachesTo
83       - local_storage_server_cmaui5_test_nested3Level_test_nested2Level:
84           capability: tosca.capabilities.Attachment
85           node: test_vol1
86           relationship: tosca.relationships.AttachesTo
87       - local_storage_server_cmaui5_test_nested3Level_test_nested2Level:
88           capability: tosca.capabilities.Attachment
89           node: test_vol1
90           relationship: tosca.relationships.AttachesTo
91     test_nestedInvalidConnectionToNova:
92       type: org.openecomp.resource.abstract.nodes.heat.nested1
93       directives:
94       - substitutable
95       properties:
96         p1: test_nova
97         service_template_filter:
98           substitute_service_template: nested1ServiceTemplate.yaml
99     test_vol1:
100       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
101       properties:
102         volume_type:
103           get_input: CMAUI_volume_type
104         size: '(get_input : cmaui_cinder_volume_size) * 1024'
105     test_resourceGroup:
106       type: org.openecomp.resource.abstract.nodes.heat.nested3
107       directives:
108       - substitutable
109       properties:
110         p1: test_vol1
111         service_template_filter:
112           substitute_service_template: nested3ServiceTemplate.yaml
113           count: 9
114           mandatory: true
115         indx:
116           get_property:
117           - SELF
118           - service_template_filter
119           - index_value
120       requirements:
121       - local_storage_server_cmaui7_test_nested4Level:
122           capability: tosca.capabilities.Attachment
123           node: test_vol1
124           relationship: tosca.relationships.AttachesTo
125       - local_storage_server_cmaui5:
126           capability: tosca.capabilities.Attachment
127           node: test_vol1
128           relationship: tosca.relationships.AttachesTo
129     test_vol2:
130       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
131       properties:
132         volume_type:
133           get_input: CMAUI_volume_type
134         size: '(get_input : cmaui_cinder_volume_size) * 1024'
135     test_nova:
136       type: org.openecomp.resource.vfc.nodes.heat.jsa
137       properties:
138         image: image
139         name:
140           get_input: jsa_name
141   groups:
142     main_group:
143       type: org.openecomp.groups.heat.HeatStack
144       properties:
145         heat_file: ../Artifacts/main.yml
146         description: |
147           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
148       members:
149       - test_nested1Level
150       - test_nestedInvalidConnectionToNova
151       - test_vol1
152       - test_resourceGroup
153       - test_vol2
154       - test_nova