add corrections to vhosts

This commit is contained in:
Louis Abel 2023-07-17 00:17:04 -07:00
parent 8dc71dfeb4
commit fe0fc52856
Signed by: label
GPG Key ID: 3331F061D1D9990E
2 changed files with 62 additions and 2 deletions

View File

@ -30,6 +30,18 @@ rabbitmq_users:
configure_priv: ".*"
read_priv: ".*"
write_priv: ".*"
- vhost: '/pubsub'
configure_priv: ".*"
read_priv: ".*"
write_priv: ".*"
- vhost: '/public_pubsub'
configure_priv: ".*"
read_priv: ".*"
write_priv: ".*"
- vhost: '/mbs'
configure_priv: ".*"
read_priv: ".*"
write_priv: ".*"
- user: mbs
state: present
configure_priv: ".*"
@ -57,5 +69,13 @@ rabbitmq_users:
configure_priv: "^$"
read_priv: "^$"
write_priv: "^$"
- vhost: '/pubsub'
configure_priv: "^$"
read_priv: "^$"
write_priv: "^$"
- vhost: '/public_pubsub'
configure_priv: "^$"
read_priv: "^$"
write_priv: "^$"
tags: "monitoring"
...

View File

@ -1,6 +1,6 @@
---
rabbitmq_vhosts:
- vhost: pubsub
- vhost: '/pubsub'
state: present
policy:
- name: HA
@ -18,7 +18,7 @@ rabbitmq_vhosts:
tags:
expires: '111600000'
max-length-bytes: '1073741824'
- vhost: public_pubsub
- vhost: '/public_pubsub'
state: present
policy:
- name: sweeper
@ -68,4 +68,44 @@ rabbitmq_vhosts:
tags:
expires: '111600000'
max-length-bytes: '1073741824'
# Legacy entries
- vhost: pubsub
state: present
policy:
- name: HA
apply_to: queues
state: present
pattern: ".*"
tags:
ha-mode: 'all'
ha-sync-mode: 'automatic'
ha-sync-batch-size: '10000'
- name: pubsub_sweeper
apply_to: queues
state: present
pattern: ".*"
tags:
expires: '111600000'
max-length-bytes: '1073741824'
- vhost: public_pubsub
state: present
policy:
- name: sweeper
apply_to: queues
state: present
pattern: ".*"
tags:
expires: '3600000'
max-length-bytes: '52428800'
- vhost: '/mbs'
state: present
policy:
- name: HA
apply_to: queues
state: present
pattern: ".*"
tags:
ha-mode: 'all'
ha-sync-mode: 'automatic'
ha-sync-batch-size: '10000'
...