123 lines
2.9 KiB
YAML
123 lines
2.9 KiB
YAML
# parameter:
|
|
# - name: "pubsub-to-public_pubsub"
|
|
# component: "federation-upstream"
|
|
# value: '{"uri": "amqps://pubsub_federation:{{ pubsub_federation_pass }}@{{ rabbitmq_cluster_list[0] }}/%2Fpubsub", "ack-mode": "on-confirm"}'
|
|
# state: present
|
|
---
|
|
rabbitmq_vhosts:
|
|
- 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
|
|
- vhost: distrobuild
|
|
state: present
|
|
policy:
|
|
- name: HA
|
|
apply_to: queues
|
|
state: present
|
|
pattern: ".*"
|
|
tags:
|
|
ha-mode: 'all'
|
|
ha-sync-mode: 'automatic'
|
|
ha-sync-batch-size: 10000
|
|
- vhost: odcs
|
|
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
|
|
# 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
|
|
- name: pubsub-to-public_pubsub
|
|
apply_to: exchanges
|
|
state: present
|
|
pattern: "^(amq|zmq)\\.topic$"
|
|
tags:
|
|
federation-upstream: "pubsub-to-public_pubsub"
|
|
- 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
|
|
...
|