ceb1117e4f4a9d85dc148e9cdde08a0e690eaccf
[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             - main
21             source_type: HEAT
22             param_name: cmaui_cinder_volume_size
23       type: float
24       description: the size of the CMAUI Cinder volume
25     CMAUI_volume_type:
26       label: CMAUI vm volume type
27       hidden: false
28       immutable: false
29       annotations:
30         source:
31           type: org.openecomp.annotations.Source
32           properties:
33             vf_module_label:
34             - main
35             source_type: HEAT
36             param_name: CMAUI_volume_type
37       type: string
38       description: the name of the target volume backend
39   node_templates:
40     test_vol:
41       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
42       properties:
43         volume_type:
44           get_input: CMAUI_volume_type
45         size: '(get_input : cmaui_cinder_volume_size) * 1024'
46     test_nested:
47       type: org.openecomp.resource.abstract.nodes.heat.nested
48       directives:
49       - substitutable
50       properties:
51         service_template_filter:
52           substitute_service_template: nestedServiceTemplate.yaml
53         cmaui_volume_param: test_vol
54       requirements:
55       - local_storage_server_cmaui:
56           capability: tosca.capabilities.Attachment
57           node: test_vol
58           relationship: tosca.relationships.AttachesTo
59   groups:
60     main_group:
61       type: org.openecomp.groups.heat.HeatStack
62       properties:
63         heat_file: ../Artifacts/main.yml
64         description: |
65           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
66       members:
67       - test_vol
68       - test_nested