From 8464a4cba38a4e4b98305712fb577bbe60068775 Mon Sep 17 00:00:00 2001 From: Sergey Skripnick Date: Tue, 8 Jul 2014 21:05:23 +0300 Subject: [PATCH] Configure rabbitmq credentials in keystone.conf Rabbitmq credentials in keystone.conf should be updated according to localrc This is done mostly to enable keystone notifications. There are 2 cases where we can use notifications from keystone: A) Collect audit notifications in ceilometer B) Collect profiling data Change-Id: I381d4d670755aa691743caa02df7dc55e05784c2 --- lib/keystone | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/keystone b/lib/keystone index ec124cbaaa..bcee8aa60a 100644 --- a/lib/keystone +++ b/lib/keystone @@ -193,6 +193,12 @@ function configure_keystone { iniset $KEYSTONE_CONF assignment driver "keystone.assignment.backends.$KEYSTONE_ASSIGNMENT_BACKEND.Assignment" fi + # Configure rabbitmq credentials + if is_service_enabled rabbit; then + iniset $KEYSTONE_CONF DEFAULT rabbit_password $RABBIT_PASSWORD + iniset $KEYSTONE_CONF DEFAULT rabbit_host $RABBIT_HOST + fi + # Set the URL advertised in the ``versions`` structure returned by the '/' route iniset $KEYSTONE_CONF DEFAULT public_endpoint "$KEYSTONE_SERVICE_PROTOCOL://$KEYSTONE_SERVICE_HOST:%(public_port)s/" iniset $KEYSTONE_CONF DEFAULT admin_endpoint "$KEYSTONE_SERVICE_PROTOCOL://$KEYSTONE_SERVICE_HOST:%(admin_port)s/"