summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDmitry Mescheryakov <dmescheryakov@mirantis.com>2015-12-09 17:02:21 +0300
committerDmitry Mescheryakov <dmescheryakov@mirantis.com>2015-12-09 18:47:41 +0300
commit7d3055a5052e073c2a7beda3b38b717715f21f10 (patch)
treed6ab095f2b9dd192c1e9926b53d93a5c63601651 /scripts
parent1be1da575bfdcd01d8c674b7c359f807f1e3e723 (diff)
downloadrabbitmq-server-git-7d3055a5052e073c2a7beda3b38b717715f21f10.tar.gz
Allow users to define poliies and parameters in OCF script for HA
By mistake OpenStack policies were copied into the initial version of the script. The policies are removed by this change. Instead users are provided with ability to set their own policies in a new set_rabbitmq_policy.sh file. Also now users can extend parameters list with their own ones. For now extended parameters can be used only in the policy file, but later new places to hook into could appear.
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
+