#!/bin/bash
# needed for ocf_log
: ${OCF_FUNCTIONS_DIR=${OCF_ROOT}/lib/heartbeat}
. ${OCF_FUNCTIONS_DIR}/ocf-shellfuncs
OCF_RESKEY_enable_rpc_ha_default=false
: ${OCF_RESKEY_enable_rpc_ha=${OCF_RESKEY_enable_rpc_ha_default}}
OCF_RESKEY_enable_notifications_ha_default=true
: ${OCF_RESKEY_enable_notifications_ha=${OCF_RESKEY_enable_notifications_ha_default}}
read -d '' EXTENDED_OCF_PARAMS << EOF
Set ha-mode=all policy for RPC queues. Note that Ceilometer queues are not
affected by this flag.
Set ha-mode=all policy for RPC queues
Set ha-mode=all policy for Ceilometer queues. Note that RPC queues are not
affected by this flag.
Set ha-mode=all policy for Ceilometer queues
EOF
upstream_rabbitmq_ocf_script="${OCF_ROOT}/resource.d/rabbitmq/rabbitmq-server-ha"
# if we haven't installed the upstream script, clearly we cannot be running.
if ! test -f $upstream_rabbitmq_ocf_script ; then
ocf_log err "rabbitmq-server upstream ocf script not present ${upstream_rabbitmq_ocf_script}"
exit $OCF_NOT_RUNNING
fi
. $upstream_rabbitmq_ocf_script