b0b26f59fa037f2839f52bbb5c40c07518f06305
[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_cinder_volume_size:
12       label: CMAUI Cinder volume size
13       hidden: false
14       immutable: false
15       annotations:
16         source:
17           type: org.openecomp.annotations.Source
18           properties:
19             vf_module_label:
20             - addOn
21             - main
22             source_type: HEAT
23             param_name: cmaui_cinder_volume_size
24       type: float
25       description: the size of the CMAUI Cinder volume
26     shared_vol1:
27       hidden: false
28       immutable: false
29       annotations:
30         source:
31           type: org.openecomp.annotations.Source
32           properties:
33             vf_module_label:
34             - addOn
35             source_type: HEAT
36             param_name: shared_vol1
37       type: string
38       description: volume name
39     shared_vol2:
40       hidden: false
41       immutable: false
42       annotations:
43         source:
44           type: org.openecomp.annotations.Source
45           properties:
46             vf_module_label:
47             - addOn
48             source_type: HEAT
49             param_name: shared_vol2
50       type: string
51       description: volume name
52     CMAUI_volume_type:
53       label: CMAUI vm volume type
54       hidden: false
55       immutable: false
56       annotations:
57         source:
58           type: org.openecomp.annotations.Source
59           properties:
60             vf_module_label:
61             - addOn
62             - main
63             source_type: HEAT
64             param_name: CMAUI_volume_type
65       type: string
66       description: the name of the target volume backend
67   node_templates:
68     test_vol1:
69       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
70       properties:
71         volume_type:
72           get_input: CMAUI_volume_type
73         size: '(get_input : cmaui_cinder_volume_size) * 1024'
74     test_vol2:
75       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
76       properties:
77         volume_type:
78           get_input: CMAUI_volume_type
79         size: '(get_input : cmaui_cinder_volume_size) * 1024'
80     test_nested:
81       type: org.openecomp.resource.abstract.nodes.heat.nested
82       directives:
83       - substitutable
84       properties:
85         service_template_filter:
86           substitute_service_template: nestedServiceTemplate.yaml
87         cmaui_volume_param2:
88           get_input: shared_vol2
89         shared_vol1:
90           get_input: shared_vol1
91       requirements:
92       - local_storage_server_cmaui2:
93           capability: tosca.capabilities.Attachment
94           node: test_vol1
95           relationship: tosca.relationships.AttachesTo
96       - local_storage_server_cmaui1:
97           capability: tosca.capabilities.Attachment
98           node: test_vol1
99           relationship: tosca.relationships.AttachesTo
100       - local_storage_server_cmaui1:
101           capability: tosca.capabilities.Attachment
102           node: test_vol2
103           relationship: tosca.relationships.AttachesTo
104   groups:
105     main_group:
106       type: org.openecomp.groups.heat.HeatStack
107       properties:
108         heat_file: ../Artifacts/main.yml
109         description: |
110           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
111       members:
112       - test_vol1
113       - test_vol2
114     addOn_group:
115       type: org.openecomp.groups.heat.HeatStack
116       properties:
117         heat_file: ../Artifacts/addOn.yml
118         description: |
119           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
120       members:
121       - test_nested
122   outputs:
123     out1_not_shared:
124       value: test_nested