[sdc] rebase update
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / fulltest / nestedSingleCompute / multipleReferencesToSameNestedFilesWithSameComputeType / in / module_6_vson_dbs_volume.yaml
1 heat_template_version: 2014-10-16
2 #################################
3 # Author: Dmitry Orzhehovsky
4 # Email:  dorzheho@cisco.com
5 #################################
6
7 description: >
8   Creates Cinder volumes.
9   Cinder volume is a storage in the form of block devices. 
10   It can be used, for example, for providing storage to instance. 
11   Volume supports creation from snapshot, backup or image. 
12   Also volume can be created only by size.
13   The template creates volumes for vSON Database servers configured for sharding
14   (Virtual Function Component DBS).
15   The shard consists of two Database instances:
16   - Primary 
17   - Secondary 
18
19 parameters:
20
21   vnf_name:
22     type: string
23     label: VF name
24     description: Unique name for this VF instance.
25
26   vf_module_name:
27     type: string
28     label: VF module name
29     description: Unique name for this VF module instance.
30
31   availability_zone_0:
32     type: string
33     label: Availability zone 0
34     description: First availability zone.
35
36   availability_zone_1:
37     type: string
38     label: Availability zone 1
39     description: Second availability zone.
40
41   vson_dbs_volume_name_0:
42     type: string
43     label: vSON DBS volume name 0
44     description: First volume name.
45
46   vson_dbs_volume_name_1:
47     type: string
48     label: vSON DBS volume name 1
49     description: Second volume name.
50
51   vson_dbs_volume_size_0:
52     type: number
53     label: vSON DBS volume ID 0 size 
54     description: Size of the first Cinder volume. Measured in gigabytes.
55
56   vson_dbs_volume_size_1:
57     type: number
58     label: vSON DBS volume ID 1 size 
59     description: Size of the second Cinder volume. Measured in gigabytes.
60
61 resources:
62
63   vson_dbs_volume_0:
64     type: OS::Cinder::Volume
65     properties:
66       name: {get_param: vson_dbs_volume_name_0}
67       metadata:
68         vnf_name: {get_param: vnf_name}
69         vf_module_name: {get_param: vf_module_name}
70       availability_zone: {get_param: availability_zone_0}
71       size: {get_param:  vson_dbs_volume_size_0}
72       description: Cinder volume for the first vSON DBS VM instance.
73
74   vson_dbs_volume_1:
75     type: OS::Cinder::Volume
76     properties:
77       name: {get_param: vson_dbs_volume_name_1}
78       metadata:
79         vnf_name: {get_param: vnf_name}
80         vf_module_name: {get_param: vf_module_name}
81       availability_zone: {get_param: availability_zone_1}
82       size: {get_param:  vson_dbs_volume_size_1}
83       description: Cinder volume for the second vSON DBS VM instance.
84
85 outputs:
86
87   vson_dbs_volume_id_0:
88     value: {get_resource: vson_dbs_volume_0}
89     description: ID of the first vSON DBS volume.
90
91   vson_dbs_volume_id_1:
92     value: {get_resource: vson_dbs_volume_1}
93     description: ID of the second vSON DBS volume.
94