From 64bb74a77de29b495d9bbf939a72a9e03b0a763a Mon Sep 17 00:00:00 2001 From: James Page Date: Mon, 21 Apr 2014 08:45:09 +0100 Subject: [PATCH] Fixup notification option --- templates/folsom/glance-api.conf | 3 +++ templates/icehouse/glance-api.conf | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/templates/folsom/glance-api.conf b/templates/folsom/glance-api.conf index 886ca3f1..8ceeadb8 100644 --- a/templates/folsom/glance-api.conf +++ b/templates/folsom/glance-api.conf @@ -30,7 +30,10 @@ registry_client_protocol = http {% include "parts/rabbitmq-single" %} +{% if rabbitmq_host or rabbitmq_hosts -%} notifier_strategy = rabbit +{% endif -%} + filesystem_store_datadir = /var/lib/glance/images/ {% if swift_store %} diff --git a/templates/icehouse/glance-api.conf b/templates/icehouse/glance-api.conf index 03489d03..61495266 100644 --- a/templates/icehouse/glance-api.conf +++ b/templates/icehouse/glance-api.conf @@ -32,7 +32,10 @@ registry_client_protocol = http {% include "parts/rabbitmq" %} -notifier_strategy = rabbit +{% if rabbitmq_host or rabbitmq_hosts -%} +notification_driver = rabbit +{% endif -%} + filesystem_store_datadir = /var/lib/glance/images/ {% if swift_store -%}