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
| ... | ... |
@@ -193,6 +193,12 @@ function configure_keystone {
|
| 193 | 193 |
iniset $KEYSTONE_CONF assignment driver "keystone.assignment.backends.$KEYSTONE_ASSIGNMENT_BACKEND.Assignment" |
| 194 | 194 |
fi |
| 195 | 195 |
|
| 196 |
+ # Configure rabbitmq credentials |
|
| 197 |
+ if is_service_enabled rabbit; then |
|
| 198 |
+ iniset $KEYSTONE_CONF DEFAULT rabbit_password $RABBIT_PASSWORD |
|
| 199 |
+ iniset $KEYSTONE_CONF DEFAULT rabbit_host $RABBIT_HOST |
|
| 200 |
+ fi |
|
| 201 |
+ |
|
| 196 | 202 |
# Set the URL advertised in the ``versions`` structure returned by the '/' route |
| 197 | 203 |
iniset $KEYSTONE_CONF DEFAULT public_endpoint "$KEYSTONE_SERVICE_PROTOCOL://$KEYSTONE_SERVICE_HOST:%(public_port)s/" |
| 198 | 204 |
iniset $KEYSTONE_CONF DEFAULT admin_endpoint "$KEYSTONE_SERVICE_PROTOCOL://$KEYSTONE_SERVICE_HOST:%(admin_port)s/" |