rabbitmq_cluster: Create the public vhost before the admin user

The admin user needs access to the public vhost, but it needs to exist
first.
This commit is contained in:
Jeremy Cline 2019-04-04 23:04:55 +00:00
parent fea0ef6c08
commit 9e7074570c

View file

@ -128,6 +128,17 @@
- rabbitmq_cluster
- config
# This is the publicly accessible virtual host
- name: Configure the publicly accessible vhost
run_once: true
delegate_to: "rabbitmq01{{ env_suffix }}.phx2.fedoraproject.org"
rabbitmq_vhost:
name: /public_pubsub
state: present
tags:
- rabbitmq_cluster
- config
- name: Configure the HA policy for queues on the pubsub virtual
rabbitmq_policy:
name: HA
@ -191,17 +202,6 @@
- rabbitmq_cluster
- config
# This is the publicly accessible virtual host
- name: Configure the publicly accessible vhost
run_once: true
delegate_to: "rabbitmq01{{ env_suffix }}.phx2.fedoraproject.org"
rabbitmq_vhost:
name: /public_pubsub
state: present
tags:
- rabbitmq_cluster
- config
- name: Create the zmq.topic exchange in /public_pubsub
run_once: true
delegate_to: "rabbitmq01{{ env_suffix }}.phx2.fedoraproject.org"