Commit 6c6ae4f3 by Carson Gee

Merge pull request #2104 from mitodl/cg/rabbit_vhosts

Apply mirrored queue policy to all rabbitmq vhosts
parents a889c13f 972f5c13
......@@ -132,8 +132,10 @@
- maintenance
- name: make queues mirrored
shell: "/usr/sbin/rabbitmqctl set_policy HA '^(?!amq\\.).*' '{\"ha-mode\": \"all\"}'"
shell: >
/usr/sbin/rabbitmqctl -p {{ item }} set_policy HA "" '{"ha-mode":"all","ha-sync-mode":"automatic"}'
when: RABBITMQ_CLUSTERED or rabbitmq_clustered_hosts|length > 1
with_items: RABBITMQ_VHOSTS
tags:
- ha
- maintenance
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment