Adjust "{}" in folder hot/resource_group

Adjusted the space around symbol "{}" in folder /hot/resource_group

Change-Id: I336f5aaa01ba33b5b300850b764c0faa6ec3d965
This commit is contained in:
dixiaoli 2015-10-25 09:50:49 +00:00
parent 886c79a6b0
commit 0224c1d24d
3 changed files with 12 additions and 12 deletions

@ -13,15 +13,15 @@ outputs:
# value, for other resources the ID returned will be the uuid of the # value, for other resources the ID returned will be the uuid of the
# actual resource # actual resource
resource1_id: resource1_id:
value: {get_attr: [random_group, resource.0]} value: { get_attr: [random_group, resource.0] }
resource2_id: 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 # The last part of the resource.0.value specifies the attribute of the
# nested resource to access, e.g in this case 'value' # nested resource to access, e.g in this case 'value'
resource1_value: resource1_value:
value: {get_attr: [random_group, resource.0.value]} value: { get_attr: [random_group, resource.0.value] }
resource2_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 # You can also get a list of all values in the group
all_values: 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 description: Size of volume to attach to instance
default: 1 default: 1
constraints: constraints:
- range: {min: 1, max: 10} - range: { min: 1, max: 10 }
num_volumes: num_volumes:
type: number type: number
description: Number of volumes to attach to instance description: Number of volumes to attach to instance
default: 2 default: 2
constraints: constraints:
- range: {min: 1, max: 10} - range: { min: 1, max: 10 }
instance_type: instance_type:
type: string type: string
@ -44,12 +44,12 @@ resources:
group_of_volumes: group_of_volumes:
type: OS::Heat::ResourceGroup type: OS::Heat::ResourceGroup
properties: properties:
count: {get_param: num_volumes} count: { get_param: num_volumes }
resource_def: resource_def:
type: volume_with_attachment.yaml type: volume_with_attachment.yaml
properties: properties:
instance_id: {get_resource: instance} instance_id: { get_resource: instance }
volume_size: {get_param: volume_size} volume_size: { get_param: volume_size }
outputs: outputs:
server_ip: server_ip:

@ -6,7 +6,7 @@ parameters:
description: Size of volume to attach to instance description: Size of volume to attach to instance
default: 1 default: 1
constraints: constraints:
- range: {min: 1, max: 10} - range: { min: 1, max: 10 }
instance_id: instance_id:
type: string type: string
@ -23,4 +23,4 @@ resources:
type: OS::Cinder::VolumeAttachment type: OS::Cinder::VolumeAttachment
properties: properties:
volume_id: { get_resource: volume } volume_id: { get_resource: volume }
instance_uuid: { get_param: instance_id} instance_uuid: { get_param: instance_id }