Browse Source

Updated from OpenStack Ansible Tests

Change-Id: I54e95e935b13b54d295de51f7562938a486f80af
OpenStack Proposal Bot 3 days ago
parent
commit
108503208a
1 changed files with 22 additions and 0 deletions
  1. 22
    0
      tasks/mq_setup.yml

+ 22
- 0
tasks/mq_setup.yml View File

@@ -33,6 +33,16 @@
33 33
         name: "{{ _oslomsg_rpc_vhost }}"
34 34
         state: "present"
35 35
 
36
+    - name: Apply RPC RabbitMQ vhost policies
37
+      rabbitmq_policy:
38
+        node: "rabbit@{{ _oslomsg_rpc_setup_host }}"
39
+        name: "{{ item.name }}"
40
+        pattern: "{{ item.pattern }}"
41
+        priority: "{{ item.priority | default(0) }}"
42
+        tags: "{{ item.tags }}"
43
+        vhost: "{{ _oslomsg_rpc_vhost }}"
44
+      loop: "{{ _oslomsg_rpc_policies | default([]) + oslomsg_rpc_policies }}"
45
+
36 46
     - name: Add RPC RabbitMQ user
37 47
       rabbitmq_user:
38 48
         user: "{{ _oslomsg_rpc_userid }}"
@@ -60,6 +70,18 @@
60 70
       when:
61 71
         - _oslomsg_notify_vhost != _oslomsg_rpc_vhost
62 72
 
73
+    - name: Apply Notify RabbitMQ vhost policies
74
+      rabbitmq_policy:
75
+        node: "rabbit@{{ _oslomsg_notify_setup_host }}"
76
+        name: "{{ item.name }}"
77
+        pattern: "{{ item.pattern }}"
78
+        priority: "{{ item.priority | default(0) }}"
79
+        tags: "{{ item.tags }}"
80
+        vhost: "{{ _oslomsg_notify_vhost }}"
81
+      loop: "{{ _oslomsg_notify_policies | default([]) + oslomsg_notify_policies }}"
82
+      when:
83
+        - _oslomsg_notify_vhost != _oslomsg_rpc_vhost
84
+
63 85
     - name: Add Notify RabbitMQ user
64 86
       rabbitmq_user:
65 87
         user: "{{ _oslomsg_notify_userid }}"

Loading…
Cancel
Save