aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/inputfiles/base_pronghorn_volume.yaml
blob: 8355b63212e0d7e0b8228c8609a53fa01f8fc126 (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
70
71
72
73
74
75
76
77
heat_template_version: 2015-04-30

description: Pronghorn Data Volume

parameters:
  ###
  # size of each database storage volume
  ###
  db_volume_size_0:
    label: Data Volume Size
    description: Size of the data volume
    type: number
    constraints:
      - range: { min: 1, max: 2000 }
        description: Volume size should be an integer between 1 and 2000 (GB)


resources:
  ###
  # define database storage volumes
  # four volumes are created for each server
  # these four volumes will be combined in a RAID 10 array
  ###
  db_volumes_0:
    type: OS::Heat::ResourceGroup
    properties:
      count: 1
      resource_def:
        type: OS::Cinder::Volume
        properties:
          name: db_volume_%index%_0
          size: { get_param: db_volume_size_0 }
  db_volumes_1:
    type: OS::Heat::ResourceGroup
    properties:
      count: 1
      resource_def:
        type: OS::Cinder::Volume
        properties:
          name: db_volume_%index%_1
          size: { get_param: db_volume_size_0 }
  db_volumes_2:
    type: OS::Heat::ResourceGroup
    properties:
      count: 1
      resource_def:
        type: OS::Cinder::Volume
        properties:
          name: db_volume_%index%_2
          size: { get_param: db_volume_size_0 }
  db_volumes_3:
    type: OS::Heat::ResourceGroup
    properties:
      count: 1
      resource_def:
        type: OS::Cinder::Volume
        properties:
          name: db_volume_%index%_3
          size: { get_param: db_volume_size_0 }


outputs:
  ###
  # database storage volume outputs
  ###
  db_volume_id_0:
    description: IDs of the database volumes
    value: { get_attr: [db_volumes_0, refs, 1] }
  # db_volume_id_1:
  #   description: IDs of the database volumes
  #   value: { get_attr: [db_volumes_1, refs, 1] }
  # db_volume_id_2:
  #   description: IDs of the database volumes
  #   value: { get_attr: [db_volumes_2, refs, 1] }
  # db_volume_id_3:
  #   description: IDs of the database volumes
  #   value: { get_attr: [db_volumes_3, refs, 1] }