Updated from OpenStack Ansible Tests

Change-Id: I4eb39382c377f772656728e1365fd466a636ac1b
This commit is contained in:
OpenStack Proposal Bot 2018-08-20 10:49:52 +00:00 committed by Jesse Pretorius (odyssey4me)
parent 14d5186079
commit f431b2262d

View File

@ -46,7 +46,7 @@
no_log: true no_log: true
- name: Setup Notify MQ Service (RabbitMQ) - name: Setup Notify MQ Service (RabbitMQ)
delegate_to: "{{ _oslomsg_rpc_setup_host }}" delegate_to: "{{ _oslomsg_notify_setup_host }}"
when: when:
- "(_oslomsg_configure_notify | default(_oslomsg_notify_transport is defined))" - "(_oslomsg_configure_notify | default(_oslomsg_notify_transport is defined))"
- "(_oslomsg_notify_transport is defined) and (_oslomsg_notify_transport == 'rabbit')" - "(_oslomsg_notify_transport is defined) and (_oslomsg_notify_transport == 'rabbit')"
@ -70,4 +70,14 @@
force: true force: true
no_log: 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