Skip to content

Commit 6832f8f

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "rabbitmq: enable/disable prometheus plugin follow up" into stable/wallaby
2 parents 7a8425f + 8f98c4a commit 6832f8f

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
@@ -805,14 +805,6 @@ outward_rabbitmq_user: "openstack"
805805
rabbitmq_enable_tls: "no"
806806
# CA certificate bundle in RabbitMQ container.
807807
rabbitmq_cacert: "/etc/ssl/certs/{{ 'ca-certificates.crt' if kolla_base_distro in ['debian', 'ubuntu'] else 'ca-bundle.trust.crt' }}"
808-
rabbitmq_enable_prometheus_plugin: "{{ enable_prometheus }}"
809-
rabbitmq_plugins:
810-
- name: "rabbitmq_management"
811-
enabled: True
812-
- name: "rabbitmq_prometheus"
813-
enabled: "{{ rabbitmq_enable_prometheus_plugin | bool }}"
814-
815-
rabbitmq_enabled_plugins: "{{ rabbitmq_plugins | selectattr('enabled', 'equalto', true) | list }}"
816808

817809
####################
818810
# Qdrouterd options

ansible/roles/rabbitmq/defaults/main.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,15 @@ rabbitmq_server_additional_erl_args: "+S 2:2 +sbwt none +sbwtdcpu none +sbwtdio
8888
rabbitmq_tls_options: {}
8989
# To avoid split-brain
9090
rabbitmq_cluster_partition_handling: "pause_minority"
91+
92+
####################
93+
# Plugins
94+
####################
95+
rabbitmq_enable_prometheus_plugin: "{{ enable_prometheus }}"
96+
rabbitmq_plugins:
97+
- name: "rabbitmq_management"
98+
enabled: True
99+
- name: "rabbitmq_prometheus"
100+
enabled: "{{ rabbitmq_enable_prometheus_plugin | bool }}"
101+
102+
rabbitmq_enabled_plugins: "{{ rabbitmq_plugins | selectattr('enabled', 'equalto', true) | list }}"

0 commit comments

Comments
 (0)