Added monitoring tag to monitoring user creation task.

Without that tag, the monitoring user doesn't have the proper privileges
to access the management API to collect metrics. Check the Permission
section in RabbitMQ documentation at https://www.rabbitmq.com/management.html
for futher precision regarding the permission model.

Closes-Bug: 1750582
Change-Id: Iebf279ca591e646656f8411934fd58dc43d5f002
This commit is contained in:
Patrick Petit 2018-04-05 09:22:38 +02:00 committed by Jean-Philippe Evrard
parent 80905d232d
commit 45cebe81c2

View File

@ -70,6 +70,7 @@
rabbitmq_user: rabbitmq_user:
user: "{{ rabbitmq_monitoring_userid|default('monitoring') }}" user: "{{ rabbitmq_monitoring_userid|default('monitoring') }}"
password: "{{ rabbitmq_monitoring_password }}" password: "{{ rabbitmq_monitoring_password }}"
tags: "monitoring"
state: "present" state: "present"
when: rabbitmq_monitoring_password is defined when: rabbitmq_monitoring_password is defined
environment: "{{ deployment_environment_variables | default({}) }}" environment: "{{ deployment_environment_variables | default({}) }}"