Updated from OpenStack Ansible Tests

Change-Id: Ia3505178e5dc2eb2715c008f7f8f6d97d9c2a1eb
This commit is contained in:
OpenStack Proposal Bot 2019-04-17 07:25:46 +00:00
parent 97ed8a2ab6
commit ac09bc45a6

View File

@ -33,6 +33,16 @@
name: "{{ _oslomsg_rpc_vhost }}"
state: "present"
- name: Apply RPC RabbitMQ vhost policies
rabbitmq_policy:
node: "rabbit@{{ _oslomsg_rpc_setup_host }}"
name: "{{ item.name }}"
pattern: "{{ item.pattern }}"
priority: "{{ item.priority | default(0) }}"
tags: "{{ item.tags }}"
vhost: "{{ _oslomsg_rpc_vhost }}"
loop: "{{ _oslomsg_rpc_policies | default([]) + oslomsg_rpc_policies }}"
- name: Add RPC RabbitMQ user
rabbitmq_user:
user: "{{ _oslomsg_rpc_userid }}"
@ -60,6 +70,18 @@
when:
- _oslomsg_notify_vhost != _oslomsg_rpc_vhost
- name: Apply Notify RabbitMQ vhost policies
rabbitmq_policy:
node: "rabbit@{{ _oslomsg_notify_setup_host }}"
name: "{{ item.name }}"
pattern: "{{ item.pattern }}"
priority: "{{ item.priority | default(0) }}"
tags: "{{ item.tags }}"
vhost: "{{ _oslomsg_notify_vhost }}"
loop: "{{ _oslomsg_notify_policies | default([]) + oslomsg_notify_policies }}"
when:
- _oslomsg_notify_vhost != _oslomsg_rpc_vhost
- name: Add Notify RabbitMQ user
rabbitmq_user:
user: "{{ _oslomsg_notify_userid }}"