heat_template_version: 2014-10-16 ################################# # Author: Dmitry Orzhehovsky # Email: dorzheho@cisco.com ################################# description: > Creates Cinder volumes. Cinder volume is a storage in the form of block devices. It can be used, for example, for providing storage to instance. Volume supports creation from snapshot, backup or image. Also volume can be created only by size. The template creates volumes for vSON Database servers configured for sharding (Virtual Function Component DBS). The shard consists of two Database instances: - Primary - Secondary parameters: vnf_name: type: string label: VF name description: Unique name for this VF instance. vf_module_name: type: string label: VF module name description: Unique name for this VF module instance. availability_zone_0: type: string label: Availability zone 0 description: First availability zone. availability_zone_1: type: string label: Availability zone 1 description: Second availability zone. vson_dbs_volume_name_0: type: string label: vSON DBS volume name 0 description: First volume name. vson_dbs_volume_name_1: type: string label: vSON DBS volume name 1 description: Second volume name. vson_dbs_volume_size_0: type: number label: vSON DBS volume ID 0 size description: Size of the first Cinder volume. Measured in gigabytes. vson_dbs_volume_size_1: type: number label: vSON DBS volume ID 1 size description: Size of the second Cinder volume. Measured in gigabytes. resources: vson_dbs_volume_0: type: OS::Cinder::Volume properties: name: {get_param: vson_dbs_volume_name_0} metadata: vnf_name: {get_param: vnf_name} vf_module_name: {get_param: vf_module_name} availability_zone: {get_param: availability_zone_0} size: {get_param: vson_dbs_volume_size_0} description: Cinder volume for the first vSON DBS VM instance. vson_dbs_volume_1: type: OS::Cinder::Volume properties: name: {get_param: vson_dbs_volume_name_1} metadata: vnf_name: {get_param: vnf_name} vf_module_name: {get_param: vf_module_name} availability_zone: {get_param: availability_zone_1} size: {get_param: vson_dbs_volume_size_1} description: Cinder volume for the second vSON DBS VM instance. outputs: vson_dbs_volume_id_0: value: {get_resource: vson_dbs_volume_0} description: ID of the first vSON DBS volume. vson_dbs_volume_id_1: value: {get_resource: vson_dbs_volume_1} description: ID of the second vSON DBS volume.