summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBogdan Dobrelya <bdobrelia@mirantis.com>2016-03-21 14:22:50 +0100
committerBogdan Dobrelya <bdobrelia@mirantis.com>2016-03-24 13:55:29 +0100
commit50506b399eee3e86d9577f4b3a6a58750a5cbcc5 (patch)
treef5aa7bbfa5704d8c5d012a8aa21460dcace33b0a /docs
parent06d63e3d36287a790ef3928d4e6377ffb7e2fe44 (diff)
downloadrabbitmq-server-git-50506b399eee3e86d9577f4b3a6a58750a5cbcc5.tar.gz
Put the RabbitMQ OCF RA policy to /usr/sbin
* Fix failing pcs resource list command * Move policy file to examples in docs dirs Related Fuel bug: https://bugs.launchpad.net/fuel/+bug/1558627 Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/README-for-packages4
-rw-r--r--docs/set_rabbitmq_policy.sh.example4
2 files changed, 8 insertions, 0 deletions
diff --git a/docs/README-for-packages b/docs/README-for-packages
index 35a1523ac3..f26889b640 100644
--- a/docs/README-for-packages
+++ b/docs/README-for-packages
@@ -18,3 +18,7 @@ An example configuration file is provided in the same directory as
this README. Copy it to /etc/rabbitmq/rabbitmq.config to use it. The
RabbitMQ server must be restarted after changing the configuration
file.
+
+An example policy file for HA queues is provided in the same directory
+as this README. Copy and chmod +x it to
+/usr/local/sbin/set_rabbitmq_policy to use it with the Pacemaker OCF RA.
diff --git a/docs/set_rabbitmq_policy.sh.example b/docs/set_rabbitmq_policy.sh.example
new file mode 100644
index 0000000000..f46e901ad5
--- /dev/null
+++ b/docs/set_rabbitmq_policy.sh.example
@@ -0,0 +1,4 @@
+# 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