Change the queue 'broker' config to allow a list of brokers.

For high availability, multiple concurrent queues are required. Hence
a list of brokers could be provided in the Barbican configuration file.
This commit accommodates treating the 'broker' config attributes as a
comma-delimited list of brokers.

Change-Id: Ia48e6483835acc518014f0270bb180e5a5e9f1dd
This commit is contained in:
jfwood 2013-09-27 14:45:05 -05:00
parent cd06cd1467
commit a966500ede

View File

@ -30,7 +30,7 @@ opt_group = cfg.OptGroup(name='celery',
celery_opts = [
cfg.StrOpt('project', default='barbican.queue.celery.resources'),
cfg.StrOpt('broker', default='amqp://guest@localhost//'),
cfg.ListOpt('broker', default=['amqp://guest@localhost//']),
cfg.StrOpt('include', default='barbican.queue.celery.resources'),
]