0de9369c69b8bb63e17b7a4f159f333f12b3f4f9
[sdc.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: ocgmgr_nested_volume
4 imports:
5 - openecomp_heat_index:
6     file: openecomp-heat/_index.yml
7 - GlobalSubstitutionTypes:
8     file: GlobalSubstitutionTypesServiceTemplate.yaml
9 topology_template:
10   inputs:
11     volume_type:
12       label: Volume Type
13       hidden: false
14       immutable: false
15       type: string
16       description: type of cinder volumes
17     size:
18       label: Volume Size
19       hidden: false
20       immutable: false
21       type: float
22       description: size of the cinder volumes
23       constraints:
24       - in_range:
25         - 50
26         - 400
27     vnf_name:
28       label: VNF Name
29       hidden: false
30       immutable: false
31       type: string
32       description: vnf name
33     index:
34       label: Volume index
35       hidden: false
36       immutable: false
37       type: float
38       description: number of volumes to spin up
39       constraints:
40       - valid_values:
41         - 0
42         - 1
43         - 2
44     OS::stack_name:
45       type: string
46       required: false
47   node_templates:
48     ocgmgr_volume_0:
49       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
50       properties:
51         volume_type:
52           get_input: volume_type
53         size: '(get_input : size) * 1024'
54         name:
55           str_replace:
56             template: VF_NAME_STACK_NAME_INDEX
57             params:
58               VF_NAME:
59                 get_input: vnf_name
60               INDEX:
61                 get_input: index
62               STACK_NAME:
63                 get_input: OS::stack_name
64   groups:
65     ocgmgr_nested_volume_group:
66       type: org.openecomp.groups.heat.HeatStack
67       properties:
68         heat_file: ../Artifacts/ocgmgr_nested_volume.yaml
69         description: Nested volume file for ocg mgrs
70       members:
71       - ocgmgr_volume_0
72   outputs:
73     ocgmgr_volume_id_0:
74       description: the ocgmgr volume uuids
75       value: ocgmgr_volume_0
76   substitution_mappings:
77     node_type: org.openecomp.resource.abstract.nodes.heat.ocgmgr_nested_volume
78     capabilities:
79       feature_ocgmgr_volume_0:
80       - ocgmgr_volume_0
81       - feature
82       attachment_ocgmgr_volume_0:
83       - ocgmgr_volume_0
84       - attachment
85     requirements:
86       dependency_ocgmgr_volume_0:
87       - ocgmgr_volume_0
88       - dependency