Skip to content

Commit 37b30c1

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "rabbitmq: enable/disable prometheus plugin follow up" into stable/victoria
2 parents c1cfc37 + cb73051 commit 37b30c1

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

ansible/group_vars/all.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -801,14 +801,6 @@ outward_rabbitmq_user: "openstack"
801801
rabbitmq_enable_tls: "no"
802802
# CA certificate bundle in RabbitMQ container.
803803
rabbitmq_cacert: "/etc/ssl/certs/{{ 'ca-certificates.crt' if kolla_base_distro in ['debian', 'ubuntu'] else 'ca-bundle.trust.crt' }}"
804-
rabbitmq_enable_prometheus_plugin: "{{ enable_prometheus }}"
805-
rabbitmq_plugins:
806-
- name: "rabbitmq_management"
807-
enabled: True
808-
- name: "rabbitmq_prometheus"
809-
enabled: "{{ rabbitmq_enable_prometheus_plugin | bool }}"
810-
811-
rabbitmq_enabled_plugins: "{{ rabbitmq_plugins | selectattr('enabled', 'equalto', true) | list }}"
812804

813805
####################
814806
# Qdrouterd options

ansible/roles/rabbitmq/defaults/main.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,15 @@ rabbitmq_server_additional_erl_args: "+S 2:2 +sbwt none +sbwtdcpu none +sbwtdio
7474
rabbitmq_tls_options: {}
7575
# To avoid split-brain
7676
rabbitmq_cluster_partition_handling: "pause_minority"
77+
78+
####################
79+
# Plugins
80+
####################
81+
rabbitmq_enable_prometheus_plugin: "{{ enable_prometheus }}"
82+
rabbitmq_plugins:
83+
- name: "rabbitmq_management"
84+
enabled: True
85+
- name: "rabbitmq_prometheus"
86+
enabled: "{{ rabbitmq_enable_prometheus_plugin | bool }}"
87+
88+
rabbitmq_enabled_plugins: "{{ rabbitmq_plugins | selectattr('enabled', 'equalto', true) | list }}"

0 commit comments

Comments
 (0)