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: ".*" configure_priv: ".*"
read_priv: ".*" read_priv: ".*"
write_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 - user: mbs
state: present state: present
configure_priv: ".*" configure_priv: ".*"
@ -57,5 +69,13 @@ rabbitmq_users:
configure_priv: "^$" configure_priv: "^$"
read_priv: "^$" read_priv: "^$"
write_priv: "^$" write_priv: "^$"
- vhost: '/pubsub'
configure_priv: "^$"
read_priv: "^$"
write_priv: "^$"
- vhost: '/public_pubsub'
configure_priv: "^$"
read_priv: "^$"
write_priv: "^$"
tags: "monitoring" tags: "monitoring"
... ...

View File

@ -1,6 +1,6 @@
--- ---
rabbitmq_vhosts: rabbitmq_vhosts:
- vhost: pubsub - vhost: '/pubsub'
state: present state: present
policy: policy:
- name: HA - name: HA
@ -18,7 +18,7 @@ rabbitmq_vhosts:
tags: tags:
expires: '111600000' expires: '111600000'
max-length-bytes: '1073741824' max-length-bytes: '1073741824'
- vhost: public_pubsub - vhost: '/public_pubsub'
state: present state: present
policy: policy:
- name: sweeper - name: sweeper
@ -68,4 +68,44 @@ rabbitmq_vhosts:
tags: tags:
expires: '111600000' expires: '111600000'
max-length-bytes: '1073741824' 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'
... ...