Mark all vhost config tasks as run_once
This commit is contained in:
parent
11e2ff87a1
commit
f2884d625a
1 changed files with 12 additions and 0 deletions
|
@ -183,6 +183,8 @@
|
||||||
|
|
||||||
# This is the publicly accessible virtual host
|
# This is the publicly accessible virtual host
|
||||||
- name: Configure the publicly accessible vhost
|
- name: Configure the publicly accessible vhost
|
||||||
|
run_once: true
|
||||||
|
delegate_to: "rabbitmq01{{ env_suffix }}.phx2.fedoraproject.org"
|
||||||
rabbitmq_vhost:
|
rabbitmq_vhost:
|
||||||
name: /public_pubsub
|
name: /public_pubsub
|
||||||
state: present
|
state: present
|
||||||
|
@ -191,6 +193,8 @@
|
||||||
- config
|
- config
|
||||||
|
|
||||||
- name: Configure a policy to ensure the public vhost stays swept up and tidy
|
- name: Configure a policy to ensure the public vhost stays swept up and tidy
|
||||||
|
run_once: true
|
||||||
|
delegate_to: "rabbitmq01{{ env_suffix }}.phx2.fedoraproject.org"
|
||||||
rabbitmq_policy:
|
rabbitmq_policy:
|
||||||
apply_to: queues
|
apply_to: queues
|
||||||
name: sweeper
|
name: sweeper
|
||||||
|
@ -211,6 +215,8 @@
|
||||||
# * permission to read anything since users need to read exchanges for bindings
|
# * permission to read anything since users need to read exchanges for bindings
|
||||||
# read queues for consuming
|
# read queues for consuming
|
||||||
- name: Create a user for public access
|
- name: Create a user for public access
|
||||||
|
run_once: true
|
||||||
|
delegate_to: "rabbitmq01{{ env_suffix }}.phx2.fedoraproject.org"
|
||||||
rabbitmq_user:
|
rabbitmq_user:
|
||||||
user: fedora
|
user: fedora
|
||||||
permissions:
|
permissions:
|
||||||
|
@ -229,6 +235,8 @@
|
||||||
# This user needs permissions to create a new exchange, bind an exchange to an
|
# This user needs permissions to create a new exchange, bind an exchange to an
|
||||||
# exchange, create a queue, and bind a queue to an exchange.
|
# exchange, create a queue, and bind a queue to an exchange.
|
||||||
- name: Create a user for federation
|
- name: Create a user for federation
|
||||||
|
run_once: true
|
||||||
|
delegate_to: "rabbitmq01{{ env_suffix }}.phx2.fedoraproject.org"
|
||||||
rabbitmq_user:
|
rabbitmq_user:
|
||||||
user: pubsub_federation
|
user: pubsub_federation
|
||||||
permissions:
|
permissions:
|
||||||
|
@ -244,6 +252,8 @@
|
||||||
# This is the connection from our public vhost to the private pubsub vhost.
|
# This is the connection from our public vhost to the private pubsub vhost.
|
||||||
# Note that at present they live on the same cluster, but they don't need to.
|
# Note that at present they live on the same cluster, but they don't need to.
|
||||||
- name: Configure federation upstream from pubsub to the public_pubsub vhost
|
- name: Configure federation upstream from pubsub to the public_pubsub vhost
|
||||||
|
run_once: true
|
||||||
|
delegate_to: "rabbitmq01{{ env_suffix }}.phx2.fedoraproject.org"
|
||||||
rabbitmq_parameter:
|
rabbitmq_parameter:
|
||||||
component: federation-upstream
|
component: federation-upstream
|
||||||
name: pubsub-to-public_pubsub
|
name: pubsub-to-public_pubsub
|
||||||
|
@ -252,6 +262,8 @@
|
||||||
vhost: /public_pubsub
|
vhost: /public_pubsub
|
||||||
|
|
||||||
- name: Configure a policy to federate the pubsub topic exchange to public_pubsub
|
- name: Configure a policy to federate the pubsub topic exchange to public_pubsub
|
||||||
|
run_once: true
|
||||||
|
delegate_to: "rabbitmq01{{ env_suffix }}.phx2.fedoraproject.org"
|
||||||
rabbitmq_policy:
|
rabbitmq_policy:
|
||||||
apply_to: exchanges
|
apply_to: exchanges
|
||||||
name: pubsub-to-public_pubsub
|
name: pubsub-to-public_pubsub
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue