From 89f78e7e70d8af2ffce1eddda38e1635cce6e5df Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam Date: Sat, 9 May 2015 11:53:59 +0530 Subject: [PATCH] Sample template for Keystone Service and Endpoint Adds sample hot templates for keystone service and endpoint resources. implements blueprint keystone-resource-service-endpoint Change-Id: I9ac83bdfaaac4003fcd52f2078ebf22af49a2b51 --- {contrib => hot}/heat_keystone/keystone.yaml | 0 .../heat_keystone/keystone_group.yaml | 0 .../heat_keystone/keystone_project.yaml | 0 .../heat_keystone/keystone_role.yaml | 0 hot/heat_keystone/keystone_service.yaml | 22 +++++++ .../keystone_service_endpoint.yaml | 59 +++++++++++++++++++ .../heat_keystone/keystone_updated.yaml | 0 .../heat_keystone/keystone_user.yaml | 0 8 files changed, 81 insertions(+) rename {contrib => hot}/heat_keystone/keystone.yaml (100%) rename {contrib => hot}/heat_keystone/keystone_group.yaml (100%) rename {contrib => hot}/heat_keystone/keystone_project.yaml (100%) rename {contrib => hot}/heat_keystone/keystone_role.yaml (100%) create mode 100644 hot/heat_keystone/keystone_service.yaml create mode 100644 hot/heat_keystone/keystone_service_endpoint.yaml rename {contrib => hot}/heat_keystone/keystone_updated.yaml (100%) rename {contrib => hot}/heat_keystone/keystone_user.yaml (100%) diff --git a/contrib/heat_keystone/keystone.yaml b/hot/heat_keystone/keystone.yaml similarity index 100% rename from contrib/heat_keystone/keystone.yaml rename to hot/heat_keystone/keystone.yaml diff --git a/contrib/heat_keystone/keystone_group.yaml b/hot/heat_keystone/keystone_group.yaml similarity index 100% rename from contrib/heat_keystone/keystone_group.yaml rename to hot/heat_keystone/keystone_group.yaml diff --git a/contrib/heat_keystone/keystone_project.yaml b/hot/heat_keystone/keystone_project.yaml similarity index 100% rename from contrib/heat_keystone/keystone_project.yaml rename to hot/heat_keystone/keystone_project.yaml diff --git a/contrib/heat_keystone/keystone_role.yaml b/hot/heat_keystone/keystone_role.yaml similarity index 100% rename from contrib/heat_keystone/keystone_role.yaml rename to hot/heat_keystone/keystone_role.yaml diff --git a/hot/heat_keystone/keystone_service.yaml b/hot/heat_keystone/keystone_service.yaml new file mode 100644 index 00000000..d20a2e2c --- /dev/null +++ b/hot/heat_keystone/keystone_service.yaml @@ -0,0 +1,22 @@ +heat_template_version: 2013-05-23 + +description: Sample Keystone Service template + +parameters: + name: + type: string + description: Keystone service name + description: + type: string + description: Keystone service description + type: + type: string + description: Keystone service type + +resources: + sample_service: + type: OS::Keystone::Service + properties: + name: {get_param: name} + type: {get_param: type} + description: {get_param: description} diff --git a/hot/heat_keystone/keystone_service_endpoint.yaml b/hot/heat_keystone/keystone_service_endpoint.yaml new file mode 100644 index 00000000..f2bdb371 --- /dev/null +++ b/hot/heat_keystone/keystone_service_endpoint.yaml @@ -0,0 +1,59 @@ +heat_template_version: 2013-05-23 + +description: Sample Keystone Service Endpoint template + +parameters: + name: + type: string + description: Keystone service name + description: + type: string + description: Keystone service description + type: + type: string + description: Keystone service type + region: + type: string + description: Keystone region name + public_url: + type: string + description: Public endpoint url + internal_url: + type: string + description: Internal endpoint url + admin_url: + type: string + description: Admin endpoint url + +resources: + sample_service: + type: OS::Keystone::Service + properties: + name: {get_param: name} + type: {get_param: type} + description: {get_param: description} + + public_endpoint: + type: OS::Keystone::Endpoint + properties: + service: {get_resource: sample_service} + url: {get_param: public_url} + region: {get_param: region} + interface: public + + internal_endpoint: + type: OS::Keystone::Endpoint + properties: + service: {get_resource: sample_service} + url: {get_param: internal_url} + region: {get_param: region} + interface: internal + + admin_endpoint: + type: OS::Keystone::Endpoint + properties: + service: {get_resource: sample_service} + url: {get_param: admin_url} + region: {get_param: region} + interface: admin + diff --git a/contrib/heat_keystone/keystone_updated.yaml b/hot/heat_keystone/keystone_updated.yaml similarity index 100% rename from contrib/heat_keystone/keystone_updated.yaml rename to hot/heat_keystone/keystone_updated.yaml diff --git a/contrib/heat_keystone/keystone_user.yaml b/hot/heat_keystone/keystone_user.yaml similarity index 100% rename from contrib/heat_keystone/keystone_user.yaml rename to hot/heat_keystone/keystone_user.yaml