add rmq adjustments
This commit is contained in:
parent
ff5cb35875
commit
90c4496c77
@ -79,7 +79,6 @@
|
|||||||
gpgcheck: true
|
gpgcheck: true
|
||||||
gpgkey: https://download.copr.fedorainfracloud.org/results/nalika/rockylinux-tools/pubkey.gpg
|
gpgkey: https://download.copr.fedorainfracloud.org/results/nalika/rockylinux-tools/pubkey.gpg
|
||||||
enabled: true
|
enabled: true
|
||||||
when: ansible_distribution_major_version == '8'
|
|
||||||
|
|
||||||
# Right now, we are not sure how or where we'll get our certificates. So we
|
# Right now, we are not sure how or where we'll get our certificates. So we
|
||||||
# are presenting a choice by setting a variable, koji_internal_ca. There is a
|
# are presenting a choice by setting a variable, koji_internal_ca. There is a
|
||||||
|
@ -79,7 +79,6 @@
|
|||||||
gpgcheck: true
|
gpgcheck: true
|
||||||
gpgkey: https://download.copr.fedorainfracloud.org/results/nalika/rockylinux-tools/pubkey.gpg
|
gpgkey: https://download.copr.fedorainfracloud.org/results/nalika/rockylinux-tools/pubkey.gpg
|
||||||
enabled: true
|
enabled: true
|
||||||
when: ansible_distribution_major_version == '8'
|
|
||||||
|
|
||||||
# Right now, we are not sure how or where we'll get our certificates. So we
|
# Right now, we are not sure how or where we'll get our certificates. So we
|
||||||
# are presenting a choice by setting a variable, koji_internal_ca. There is a
|
# are presenting a choice by setting a variable, koji_internal_ca. There is a
|
||||||
|
@ -79,7 +79,12 @@
|
|||||||
- name: Run rabbitmq users
|
- name: Run rabbitmq users
|
||||||
ansible.builtin.import_tasks: "tasks/rabbitmq/users.yml"
|
ansible.builtin.import_tasks: "tasks/rabbitmq/users.yml"
|
||||||
tags:
|
tags:
|
||||||
- vhosts
|
- users
|
||||||
|
|
||||||
|
- name: Run rabbitmq topics
|
||||||
|
ansible.builtin.import_tasks: "tasks/rabbitmq/topics.yml"
|
||||||
|
tags:
|
||||||
|
- topics
|
||||||
|
|
||||||
post_tasks:
|
post_tasks:
|
||||||
- name: Touching run file that ansible has ran here
|
- name: Touching run file that ansible has ran here
|
||||||
|
@ -78,4 +78,32 @@ rabbitmq_users:
|
|||||||
read_priv: "^$"
|
read_priv: "^$"
|
||||||
write_priv: "^$"
|
write_priv: "^$"
|
||||||
tags: "monitoring"
|
tags: "monitoring"
|
||||||
|
- user: rockypubsub
|
||||||
|
state: present
|
||||||
|
permissions:
|
||||||
|
- vhost: public_pubsub
|
||||||
|
configure_priv: "^(\\w{8}(-\\w{4}){3}-\\w{12})$"
|
||||||
|
write_priv: "^(\\w{8}(-\\w{4}){3}-\\w{12})$"
|
||||||
|
read_priv: ".*"
|
||||||
|
- user: pubsub_federation
|
||||||
|
state: present
|
||||||
|
permissions:
|
||||||
|
- vhost: pubsub
|
||||||
|
configure_priv: "^federation.*"
|
||||||
|
write_priv: "^federation.*"
|
||||||
|
read_priv: ".*"
|
||||||
|
- user: rockykoji
|
||||||
|
state: present
|
||||||
|
permissions:
|
||||||
|
- vhost: pubsub
|
||||||
|
configure_priv: "^$"
|
||||||
|
read_priv: "^$"
|
||||||
|
write_priv: "amq\\.topic"
|
||||||
|
- user: rockyautomation
|
||||||
|
state: present
|
||||||
|
permissions:
|
||||||
|
- vhost: pubsub
|
||||||
|
configure_priv: "^$"
|
||||||
|
read_priv: "^$"
|
||||||
|
write_priv: "amq\\.topic"
|
||||||
...
|
...
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
# 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:
|
rabbitmq_vhosts:
|
||||||
- vhost: '/pubsub'
|
- vhost: '/pubsub'
|
||||||
@ -97,6 +102,12 @@ rabbitmq_vhosts:
|
|||||||
tags:
|
tags:
|
||||||
expires: 3600000
|
expires: 3600000
|
||||||
max-length-bytes: 52428800
|
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'
|
- vhost: '/mbs'
|
||||||
state: present
|
state: present
|
||||||
policy:
|
policy:
|
||||||
|
Loading…
Reference in New Issue
Block a user