From 2f71ed8e61579b2a401bdb58c336d427ed9f84eb Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam Date: Thu, 5 Nov 2015 17:22:31 +0530 Subject: [PATCH] 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 --- hot/keystone/keystone_region.yaml | 41 +++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 hot/keystone/keystone_region.yaml diff --git a/hot/keystone/keystone_region.yaml b/hot/keystone/keystone_region.yaml new file mode 100644 index 00000000..0e6ad2c6 --- /dev/null +++ b/hot/keystone/keystone_region.yaml @@ -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} +