Updated from OpenStack Ansible Tests

Change-Id: Id8831c26fc8627d2c440ef2218a84e9e00486fea
This commit is contained in:
OpenStack Proposal Bot 2019-04-17 07:25:49 +00:00
parent 9d9aeb18c9
commit dac24bface

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 }}"