Adds keystone parent child region sample template

Provides the sample template for creating parent and
child region.

implements blueprint: heat-keystone-region-resource

depends-on: Icaefe55929a1d36614ecdd042e791c1315ecf0ad

Change-Id: I87f4395506d13a16c2a4d05c620d2198d0d96463
This commit is contained in:
Kanagaraj Manickam 2015-11-05 17:22:31 +05:30
parent 0224c1d24d
commit 2f71ed8e61

View File

@ -0,0 +1,41 @@
heat_template_version: 2015-10-15
description: Sample Keystone Region template
parameters:
region_id:
type: string
description: Keystone region id
region_description:
type: string
description: Keystone region description
default: sample region
region_enabled:
type: boolean
description: Keystone region is enabled or disabled
default: True
parent_region_id:
type: string
description: Keystone region parent
resources:
parent_region:
type: OS::Keystone::Region
properties:
id: {get_param: parent_region_id}
description: {get_param: region_description}
enabled: {get_param: region_enabled}
child_region:
type: OS::Keystone::Region
properties:
id: {get_param: region_id}
parent_region: {get_resource: parent_region}
description: {get_param: region_description}
enabled: {get_param: region_enabled}
outputs:
parent_region_id:
value: {get_resource: parent_region}
child_region_id:
value: {get_resource: child_region}