summaryrefslogtreecommitdiffstats
path: root/puppet
diff options
context:
space:
mode:
authorGiulio Fidente <gfidente@redhat.com>2015-03-18 14:59:55 -0400
committerGiulio Fidente <gfidente@redhat.com>2015-03-20 08:58:18 -0400
commit17e06c0aa799fc78cb5e03bac518c8b782b8f562 (patch)
tree7a667be2f8dc377b7149bb07e7b8d14407248018 /puppet
parent21eed9350afeeb56210923a1e9aa68d7eb8fc7e6 (diff)
Set all RabbitMQ queues as mirrored when clustered
Purpose of this change is to enable on the server side the ha-mode policy for all queues when nodes are clustered. Change-Id: I16e3d375aabac9dbcdc198c71069086951e40fc0
Diffstat (limited to 'puppet')
-rw-r--r--puppet/manifests/overcloud_controller.pp9
1 files changed, 9 insertions, 0 deletions
diff --git a/puppet/manifests/overcloud_controller.pp b/puppet/manifests/overcloud_controller.pp
index 577f5052..8f6398f3 100644
--- a/puppet/manifests/overcloud_controller.pp
+++ b/puppet/manifests/overcloud_controller.pp
@@ -129,6 +129,15 @@ if hiera('step') >= 2 {
cluster_nodes => $rabbit_nodes,
node_ip_address => hiera('controller_host'),
}
+ if $rabbit_cluster {
+ rabbitmq_policy { 'ha-all@/':
+ pattern => '^(?!amq\.).*',
+ definition => {
+ 'ha-mode' => 'all',
+ 'ha-sync-mode' => 'automatic',
+ },
+ }
+ }
rabbitmq_vhost { '/':
provider => 'rabbitmqctl',
}