Changing erlang cookies requires restarting the server
This commit is contained in:
parent
52c915cab4
commit
abb8274dba
2 changed files with 9 additions and 5 deletions
|
@ -26,7 +26,7 @@
|
||||||
exchange_type: topic
|
exchange_type: topic
|
||||||
vhost: /pubsub
|
vhost: /pubsub
|
||||||
login_user: admin
|
login_user: admin
|
||||||
login_password: "{{ (env == 'production')|ternary(rabbitmq_admin_password, rabbitmq_admin_password_staging) }}"
|
login_password: "{{ (env == 'production')|ternary(rabbitmq_admin_password_production, rabbitmq_admin_password_staging) }}"
|
||||||
with_items:
|
with_items:
|
||||||
- amq.topic
|
- amq.topic
|
||||||
- zmq.topic
|
- zmq.topic
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
name: amqp_to_zmq
|
name: amqp_to_zmq
|
||||||
vhost: /pubsub
|
vhost: /pubsub
|
||||||
login_user: admin
|
login_user: admin
|
||||||
login_password: "{{ (env == 'production')|ternary(rabbitmq_admin_password, rabbitmq_admin_password_staging) }}"
|
login_password: "{{ (env == 'production')|ternary(rabbitmq_admin_password_production, rabbitmq_admin_password_staging) }}"
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
- name: Create the RabbitMQ queue for verify-missing
|
- name: Create the RabbitMQ queue for verify-missing
|
||||||
|
@ -48,7 +48,7 @@
|
||||||
auto_delete: False
|
auto_delete: False
|
||||||
message_ttl: 60000
|
message_ttl: 60000
|
||||||
login_user: admin
|
login_user: admin
|
||||||
login_password: "{{ (env == 'production')|ternary(rabbitmq_admin_password, rabbitmq_admin_password_staging) }}"
|
login_password: "{{ (env == 'production')|ternary(rabbitmq_admin_password_production, rabbitmq_admin_password_staging) }}"
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
# Do this manually until an Ansible bugfix is deployed
|
# Do this manually until an Ansible bugfix is deployed
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
# destination_type: queue
|
# destination_type: queue
|
||||||
# vhost: /pubsub
|
# vhost: /pubsub
|
||||||
# login_user: admin
|
# login_user: admin
|
||||||
# login_password: "{{ (env == 'production')|ternary(rabbitmq_admin_password, rabbitmq_admin_password_staging) }}"
|
# login_password: "{{ (env == 'production')|ternary(rabbitmq_admin_password_production, rabbitmq_admin_password_staging) }}"
|
||||||
# tags:
|
# tags:
|
||||||
# - config
|
# - config
|
||||||
#- name: Create the verify-missing bindings
|
#- name: Create the verify-missing bindings
|
||||||
|
@ -70,7 +70,7 @@
|
||||||
# destination_type: queue
|
# destination_type: queue
|
||||||
# vhost: /pubsub
|
# vhost: /pubsub
|
||||||
# login_user: admin
|
# login_user: admin
|
||||||
# login_password: "{{ (env == 'production')|ternary(rabbitmq_admin_password, rabbitmq_admin_password_staging) }}"
|
# login_password: "{{ (env == 'production')|ternary(rabbitmq_admin_password_production, rabbitmq_admin_password_staging) }}"
|
||||||
# with_items:
|
# with_items:
|
||||||
# - amq.topic
|
# - amq.topic
|
||||||
# - zmq.topic
|
# - zmq.topic
|
||||||
|
|
|
@ -65,6 +65,8 @@
|
||||||
copy: content="{{rabbitmq_cluster_cookie_staging}}" dest=/var/lib/rabbitmq/.erlang.cookie
|
copy: content="{{rabbitmq_cluster_cookie_staging}}" dest=/var/lib/rabbitmq/.erlang.cookie
|
||||||
owner=rabbitmq group=rabbitmq mode=0600
|
owner=rabbitmq group=rabbitmq mode=0600
|
||||||
when: "env == 'staging'"
|
when: "env == 'staging'"
|
||||||
|
notify:
|
||||||
|
- restart rabbitmq
|
||||||
tags:
|
tags:
|
||||||
- rabbitmq_cluster
|
- rabbitmq_cluster
|
||||||
- config
|
- config
|
||||||
|
@ -73,6 +75,8 @@
|
||||||
copy: content="{{rabbitmq_cluster_cookie_production}}" dest=/var/lib/rabbitmq/.erlang.cookie
|
copy: content="{{rabbitmq_cluster_cookie_production}}" dest=/var/lib/rabbitmq/.erlang.cookie
|
||||||
owner=rabbitmq group=rabbitmq mode=0600
|
owner=rabbitmq group=rabbitmq mode=0600
|
||||||
when: "env == 'production'"
|
when: "env == 'production'"
|
||||||
|
notify:
|
||||||
|
- restart rabbitmq
|
||||||
tags:
|
tags:
|
||||||
- rabbitmq_cluster
|
- rabbitmq_cluster
|
||||||
- config
|
- config
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue