From 3526276a0827afb5a598c046e410b88bcb8f2e65 Mon Sep 17 00:00:00 2001 From: Steve Martinelli Date: Tue, 5 Jan 2016 23:56:40 -0500 Subject: [PATCH] Add support for role and resource keystone backends Keystone further broken apart the assignment backend into: role, resource, and assignment. We should define the backends in the config file and allow users to override the default by passing in their own value. Change-Id: Ieb22c428609d3db852814c7eceb77efa6bbde633 --- lib/keystone | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/keystone b/lib/keystone index b4b7df9a30..0c2722c526 100644 --- a/lib/keystone +++ b/lib/keystone @@ -68,6 +68,12 @@ KEYSTONE_IDENTITY_BACKEND=${KEYSTONE_IDENTITY_BACKEND:-sql} # Select the Assignment backend driver KEYSTONE_ASSIGNMENT_BACKEND=${KEYSTONE_ASSIGNMENT_BACKEND:-sql} +# Select the Role backend driver +KEYSTONE_ROLE_BACKEND=${KEYSTONE_ROLE_BACKEND:-sql} + +# Select the Resource backend driver +KEYSTONE_RESOURCE_BACKEND=${KEYSTONE_RESOURCE_BACKEND:-sql} + # Select Keystone's token provider (and format) # Choose from 'uuid', 'pki', 'pkiz', or 'fernet' KEYSTONE_TOKEN_FORMAT=${KEYSTONE_TOKEN_FORMAT:-} @@ -209,6 +215,8 @@ function configure_keystone { iniset $KEYSTONE_CONF identity driver "$KEYSTONE_IDENTITY_BACKEND" iniset $KEYSTONE_CONF assignment driver "$KEYSTONE_ASSIGNMENT_BACKEND" + iniset $KEYSTONE_CONF role driver "$KEYSTONE_ROLE_BACKEND" + iniset $KEYSTONE_CONF resource driver "$KEYSTONE_RESOURCE_BACKEND" iniset_rpc_backend keystone $KEYSTONE_CONF