Browse Source

Updated from OpenStack Ansible Tests

Change-Id: I394d64789747849bd1def5b6c63b30b2a7f6fb67
OpenStack Proposal Bot 8 months ago
parent
commit
d8f8784a01
1 changed files with 11 additions and 1 deletions
  1. 11
    1
      tasks/mq_setup.yml

+ 11
- 1
tasks/mq_setup.yml View File

@@ -70,4 +70,14 @@
70 70
         force: true
71 71
       no_log: true
72 72
 
73
-# Note: Add the tasks for additional MQ servers here
73
+- name: Setup RPC MQ Service (Qdrouterd)
74
+  delegate_to: "{{ _oslomsg_rpc_setup_host }}"
75
+  when:
76
+    - "(_oslomsg_configure_rpc | default(_oslomsg_rpc_transport is defined))"
77
+    - "(_oslomsg_rpc_transport is defined) and (_oslomsg_rpc_transport == 'amqp')"
78
+  tags:
79
+    - common-qdrouterd
80
+  block:
81
+    - name: Add RPC Qdrouterd user
82
+      shell: "echo {{ _oslomsg_rpc_password }} | saslpasswd2 -c -p -f /var/lib/qdrouterd/qdrouterd.sasldb -u AMQP {{ _oslomsg_rpc_userid }}"
83
+      no_log: true

Loading…
Cancel
Save