summaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-validation-lib/openecomp-sdc-validation-core/src/test/resources/heatTreeArtifactsValidationOutput/ocgapp_nested_volume.yaml
blob: 11e57ce67565c981b36890adf110969d4c44872b (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
heat_template_version: 2015-04-30 
description: Nested file for ocg apps
parameters:

  index:
    type: number
    label: Volume Index
    description: number of volumes to spin up
#    constraints:
#      - allowed_values: [0,1,2,4]
  size:
    type: number
    label: Volume Size
    description: size of the cinder volumes
    constraints:
      - range: { min: 50, max: 400 }
  volume_type:
    type: string
    label: Volume Type
    description: type of cinder volumes
  vnf_name:
    type: string
    label: VNF Name
    description: vnf name


resources:
  ocgapp_volume_0:
    type: OS::Cinder::Volume
    properties:
      size: {get_param: size}
      volume_type: {get_param: volume_type}
      name:
        str_replace:
          template: VF_NAME_STACK_NAME_INDEX
          params:
            VF_NAME: { get_param: vnf_name }
            STACK_NAME: { get_param: 'OS::stack_name' }
            INDEX: {get_param: index}


outputs:
  ocgapp_volume_id_0:
    description: the ocgapp volume uuid
    value: {get_resource: ocgapp_volume_0}