Adjust "{}" in folder hot/resource_group
Adjusted the space around symbol "{}" in folder /hot/resource_group Change-Id: I336f5aaa01ba33b5b300850b764c0faa6ec3d965
This commit is contained in:
parent
886c79a6b0
commit
0224c1d24d
hot/resource_group
@ -13,15 +13,15 @@ outputs:
|
||||
# value, for other resources the ID returned will be the uuid of the
|
||||
# actual resource
|
||||
resource1_id:
|
||||
value: {get_attr: [random_group, resource.0]}
|
||||
value: { get_attr: [random_group, resource.0] }
|
||||
resource2_id:
|
||||
value: {get_attr: [random_group, resource.1]}
|
||||
value: { get_attr: [random_group, resource.1] }
|
||||
# The last part of the resource.0.value specifies the attribute of the
|
||||
# nested resource to access, e.g in this case 'value'
|
||||
resource1_value:
|
||||
value: {get_attr: [random_group, resource.0.value]}
|
||||
value: { get_attr: [random_group, resource.0.value] }
|
||||
resource2_value:
|
||||
value: {get_attr: [random_group, resource.1.value]}
|
||||
value: { get_attr: [random_group, resource.1.value] }
|
||||
# You can also get a list of all values in the group
|
||||
all_values:
|
||||
value: {get_attr: [random_group, value]}
|
||||
value: { get_attr: [random_group, value] }
|
||||
|
@ -19,14 +19,14 @@ parameters:
|
||||
description: Size of volume to attach to instance
|
||||
default: 1
|
||||
constraints:
|
||||
- range: {min: 1, max: 10}
|
||||
- range: { min: 1, max: 10 }
|
||||
|
||||
num_volumes:
|
||||
type: number
|
||||
description: Number of volumes to attach to instance
|
||||
default: 2
|
||||
constraints:
|
||||
- range: {min: 1, max: 10}
|
||||
- range: { min: 1, max: 10 }
|
||||
|
||||
instance_type:
|
||||
type: string
|
||||
@ -44,12 +44,12 @@ resources:
|
||||
group_of_volumes:
|
||||
type: OS::Heat::ResourceGroup
|
||||
properties:
|
||||
count: {get_param: num_volumes}
|
||||
count: { get_param: num_volumes }
|
||||
resource_def:
|
||||
type: volume_with_attachment.yaml
|
||||
properties:
|
||||
instance_id: {get_resource: instance}
|
||||
volume_size: {get_param: volume_size}
|
||||
instance_id: { get_resource: instance }
|
||||
volume_size: { get_param: volume_size }
|
||||
|
||||
outputs:
|
||||
server_ip:
|
||||
|
@ -6,7 +6,7 @@ parameters:
|
||||
description: Size of volume to attach to instance
|
||||
default: 1
|
||||
constraints:
|
||||
- range: {min: 1, max: 10}
|
||||
- range: { min: 1, max: 10 }
|
||||
|
||||
instance_id:
|
||||
type: string
|
||||
@ -23,4 +23,4 @@ resources:
|
||||
type: OS::Cinder::VolumeAttachment
|
||||
properties:
|
||||
volume_id: { get_resource: volume }
|
||||
instance_uuid: { get_param: instance_id}
|
||||
instance_uuid: { get_param: instance_id }
|
||||
|
Loading…
x
Reference in New Issue
Block a user