From: Giulio Fidente Date: Wed, 18 Mar 2015 18:59:55 +0000 (-0400) Subject: Set all RabbitMQ queues as mirrored when clustered X-Git-Tag: opnfv-6.0.0~2632^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=17e06c0aa799fc78cb5e03bac518c8b782b8f562;p=apex-tripleo-heat-templates.git 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 --- 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', }