aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedSingleCompute/multipleReferencesToSameNestedFilesWithSameComputeType/in/module_2_vson_mdr_volume.yaml
blob: 16527652730b7a2f753fae5185ad9966249a81e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
heat_template_version: 2014-10-16
#################################
# Author: Dmitry Orzhehovsky
# Email:  dorzheho@cisco.com
#################################

description: >
  Create a Cinder volume.
  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 volume for vSON Mediator server
  (Virtual Function Component MDR).

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: Availability zone.

  vson_mdr_volume_name_0:
    type: string
    label: vSON MGT volume name
    description: Volume name.

  vson_mdr_volume_size_0:
    type: number
    label: vSON MDR cinder volume size 
    description: Size of the Cinder volume. Measured in gigabytes.

  vson_mdr_image_name:
    type: string
    label: vSON Mediator VM image name 
    description: Image name the volume will be created from. 

resources:

  vson_mdr_volume_0:
    type: OS::Cinder::Volume
    properties:
      name: {get_param: vson_mdr_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_mdr_volume_size_0}
      image: {get_param: vson_mdr_image_name}
      description: >
        vSON MDR cinder volume.
        The volume is created from the vSON base VM image.

outputs:

  vson_mdr_volume_id_0:
    value: {get_resource: vson_mdr_volume_0}
    description: Volume ID.