From d39906c44f796a5009d8e30a95c8c06308762de9 Mon Sep 17 00:00:00 2001 From: Roger Luethi Date: Sun, 28 Dec 2014 15:09:56 +0100 Subject: [PATCH] Functional changes in keystone (part 1) to match Juno Make functional changes in keystone (part 1) to match the Juno install-guide. Change-Id: I13f6f83f98e751b268a2aca743e0090a05662fdd --- labs/scripts/ubuntu/setup_keystone.sh | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/labs/scripts/ubuntu/setup_keystone.sh b/labs/scripts/ubuntu/setup_keystone.sh index a1c79208..760e9489 100755 --- a/labs/scripts/ubuntu/setup_keystone.sh +++ b/labs/scripts/ubuntu/setup_keystone.sh @@ -24,12 +24,13 @@ ADMIN_TOKEN=$(openssl rand -hex 10) echo "$ADMIN_TOKEN" echo "Installing keystone." -sudo apt-get install -y keystone +sudo apt-get install -y keystone python-keystoneclient -echo "Configuring [DEFAULT] section in /etc/keystone/keystone.conf." +conf=/etc/keystone/keystone.conf +echo "Configuring [DEFAULT] section in $conf." echo "Setting admin_token to bootstrap authentication." -iniset_sudo /etc/keystone/keystone.conf DEFAULT admin_token "$ADMIN_TOKEN" +iniset_sudo $conf DEFAULT admin_token "$ADMIN_TOKEN" function get_database_url { local db_user=$(service_to_db_user keystone) @@ -44,14 +45,18 @@ database_url=$(get_database_url) echo "Configuring [database] section in /etc/keystone/keystone.conf." echo "Setting database connection: $database_url." -iniset_sudo /etc/keystone/keystone.conf database connection "$database_url" +iniset_sudo $conf database connection "$database_url" + +echo "Configuring the UUID token provider and SQL driver." +iniset_sudo $conf token provider keystone.token.providers.uuid.Provider +iniset_sudo $conf token driver keystone.token.persistence.backends.sql.Token + +echo "Enabling verbose logging." +iniset_sudo $conf DEFAULT verbose True echo "Creating the database tables for keystone." sudo keystone-manage db_sync -echo "Setting log directory to /var/log/keystone." -iniset_sudo /etc/keystone/keystone.conf DEFAULT log_dir "/var/log/keystone" - echo "Restarting keystone." sudo service keystone restart