Updated from OpenStack Ansible Tests
Change-Id: Id5875a54ad7b1119bd80f9f10c45bf43c2da3719
This commit is contained in:
1 changed files with 22 additions and 0 deletions
@@ -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 }}"
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.