summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMichael Klishin <michael@novemberain.com>2015-12-09 18:51:29 +0300
committerMichael Klishin <michael@novemberain.com>2015-12-09 18:51:29 +0300
commit06389b4f4a33cb94464d7d72a23ac848c6809082 (patch)
treed6ab095f2b9dd192c1e9926b53d93a5c63601651 /scripts
parent1be1da575bfdcd01d8c674b7c359f807f1e3e723 (diff)
parent7d3055a5052e073c2a7beda3b38b717715f21f10 (diff)
downloadrabbitmq-server-git-06389b4f4a33cb94464d7d72a23ac848c6809082.tar.gz
Merge pull request #480 from dmitrymex/stable
Allow users to define poliies and parameters in OCF script for HA
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/set_rabbitmq_policy.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/set_rabbitmq_policy.sh b/scripts/set_rabbitmq_policy.sh
new file mode 100755
index 0000000000..a88b0c417a
--- /dev/null
+++ b/scripts/set_rabbitmq_policy.sh
@@ -0,0 +1,5 @@
+# This script is called by rabbitmq-server-ha.ocf during RabbitMQ
+# cluster start up. It is a convenient place to set your cluster
+# policy here, for example:
+# ${OCF_RESKEY_ctl} set_policy ha-all "." '{"ha-mode":"all", "ha-sync-mode":"automatic"}' --apply-to all --priority 0
+