diff --git a/README.rst b/README.rst index 0750d80..d456992 100644 --- a/README.rst +++ b/README.rst @@ -12,4 +12,11 @@ Devstack plugin for AMQP 1.0 olso.messaging driver [[local|localrc]] enable_plugin amqp1 https://git.openstack.org/openstack/devstack-plugin-amqp1 -3. run ``stack.sh`` +3. Set username and password variables if needed and they will be added to configuration:: + + AMQP1_USERNAME=queueuser + AMQP1_PASSWORD=queuepassword + +4. run ``stack.sh`` + + diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 33409cc..0efdeb9 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -113,7 +113,8 @@ EOF # Add user to SASL database local sasl_conf_file=/etc/sasl2/qpidd.conf sudo sed -i.bak '/PLAIN/!s/mech_list: /mech_list: PLAIN /' $sasl_conf_file - local sasl_db=`sudo grep sasldb_path $sasl_conf_file | cut -f 2 -d ":" | tr -d [:blank:]` + local sasl_db + sasl_db=`sudo grep sasldb_path $sasl_conf_file | cut -f 2 -d ":" | tr -d [:blank:]` if [ ! -e $sasl_db ]; then sudo mkdir -p -m 755 `dirname $sasl_db` fi @@ -139,6 +140,14 @@ log-to-file=$log_file log-to-syslog=yes EOF fi + + # Set the SASL service name if the version of qpidd supports it + if $QPIDD --help | grep -q "sasl-service-name"; then + cat <