diff --git a/README.rst b/README.rst index d456992..8b740cb 100644 --- a/README.rst +++ b/README.rst @@ -2,7 +2,7 @@ Enabling in Devstack ====================== -Devstack plugin for AMQP 1.0 olso.messaging driver +Devstack plugin for AMQP 1.0 olso.messaging driver - This plugin supports the QPID C++ broker and QPID Dispatch Router messaging systems for the rpc backend. Additional information on these messaging systems can be found at the Apache QPID homepage (https://qpid.apache.org). 1. Download DevStack @@ -17,6 +17,10 @@ Devstack plugin for AMQP 1.0 olso.messaging driver AMQP1_USERNAME=queueuser AMQP1_PASSWORD=queuepassword -4. run ``stack.sh`` +4. Optionally set the service variable for the configuration if the QPID Dispatch Router is to be used as an alternative AMQP1 service:: + + AMQP1_SERVICE=qdr + +5. run ``stack.sh`` diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 0efdeb9..aa5545c 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -153,6 +153,117 @@ EOF } +# Set up the various configuration files used by the qpid-dispatch-router (qdr) +function _configure_qdr { + + # the location of the configuration is /etc/qpid-dispatch + local qdr_conf_file + if [ -e /etc/qpid-dispatch/qdrouterd.conf ]; then + qdr_conf_file=/etc/qpid-dispatch/qdrouterd.conf + else + exit_distro_not_supported "qdrouterd.conf file not found!" + fi + + # ensure that the qpid-dispatch-router service can read its config + sudo chmod o+r $qdr_conf_file + + # qdouterd.conf file customization for devstack deployment + # Define attributes related to the AMQP container + cat <