Add support for RabbitMQ Mirrored Queues.

Previously, the openstack::quantum class could only have
a single rabbit broker by using the rabbit_host parameter.

This patch allows users to specify an array of rabbitmq brokers by
introducing the rabbit_hosts parameter to leverage
Rabbit Mirrored Queues (rabbit_ha_queues).

Defaults to false for backwards compatability and to not
implement rabbit_ha_queues.

Change-Id: I24f8dadde3324e589ae38603d85acd61ccf4d911
This commit is contained in:
danehans
2013-07-02 19:04:13 +00:00
parent 3c0fd00fe9
commit 5dbb553d93
2 changed files with 8 additions and 0 deletions

View File

@@ -86,6 +86,11 @@
# Host where rabbitmq is running.
# (optional) 127.0.0.1
#
# [rabbit_hosts]
# Enable/disable Qauntum to use rabbitmq mirrored queues.
# Specifies an array of clustered rabbitmq brokers.
# (optional) false
#
# [rabbit_virtual_host]
# Virtual host to use for rabbitmq.
# (optional) Defaults to '/'.
@@ -159,6 +164,7 @@ class openstack::quantum (
# Rabbit Information
$rabbit_user = 'rabbit_user',
$rabbit_host = '127.0.0.1',
$rabbit_hosts = false,
$rabbit_virtual_host = '/',
# Database. Currently mysql is the only option.
$db_type = 'mysql',
@@ -177,6 +183,7 @@ class openstack::quantum (
enabled => $enabled,
bind_host => $bind_address,
rabbit_host => $rabbit_host,
rabbit_hosts => $rabbit_hosts,
rabbit_virtual_host => $rabbit_virtual_host,
rabbit_user => $rabbit_user,
rabbit_password => $rabbit_password,

View File

@@ -30,6 +30,7 @@ describe 'openstack::quantum' do
:enabled => true,
:bind_host => '0.0.0.0',
:rabbit_host => '127.0.0.1',
:rabbit_hosts => false,
:rabbit_virtual_host => '/',
:rabbit_user => 'rabbit_user',
:rabbit_password => 'rabbit_pass',