From 481e5c26f9c7c4e4243f40bafd2676a25c06369f Mon Sep 17 00:00:00 2001 From: OpenStack Proposal Bot Date: Wed, 15 Aug 2018 13:41:14 +0000 Subject: [PATCH] Updated from OpenStack Ansible Tests Change-Id: Ia66f9af4a8973831d4fc32e41be06f7d53268827 --- tasks/mq_setup.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tasks/mq_setup.yml b/tasks/mq_setup.yml index 64530af..4c06e3e 100644 --- a/tasks/mq_setup.yml +++ b/tasks/mq_setup.yml @@ -70,4 +70,14 @@ force: true no_log: true -# Note: Add the tasks for additional MQ servers here +- name: Setup RPC MQ Service (Qdrouterd) + delegate_to: "{{ _oslomsg_rpc_setup_host }}" + when: + - "(_oslomsg_configure_rpc | default(_oslomsg_rpc_transport is defined))" + - "(_oslomsg_rpc_transport is defined) and (_oslomsg_rpc_transport == 'amqp')" + tags: + - common-qdrouterd + block: + - name: Add RPC Qdrouterd user + shell: "echo {{ _oslomsg_rpc_password }} | saslpasswd2 -c -p -f /var/lib/qdrouterd/qdrouterd.sasldb -u AMQP {{ _oslomsg_rpc_userid }}" + no_log: true