Add ability to configure rabbitmq

As rabbitmq's configuration file is not ini or yaml file,
there is no option to extend configuration by new config
options via merge_configs or merge_yaml.

This patch moves config options to dictionary
so it can be overriden in /etc/kolla/globals.yml.

Change-Id: I5cd772f4fb80a0e200fb24d67be735ca81e3fdeb
This commit is contained in:
Michal Arbet 2022-11-23 15:08:06 +01:00
parent 941abf9ec2
commit 701dc20f50
3 changed files with 9 additions and 0 deletions

View File

@ -84,6 +84,7 @@ rabbitmq_server_additional_erl_args: "+S 2:2 +sbwt none +sbwtdcpu none +sbwtdio
rabbitmq_tls_options: {} rabbitmq_tls_options: {}
# To avoid split-brain # To avoid split-brain
rabbitmq_cluster_partition_handling: "pause_minority" rabbitmq_cluster_partition_handling: "pause_minority"
rabbitmq_extra_config: {}
#################### ####################
# Plugins # Plugins

View File

@ -11,6 +11,9 @@ cluster_partition_handling = {{ rabbitmq_cluster_partition_handling }}
management.listener.ip = {{ api_interface_address }} management.listener.ip = {{ api_interface_address }}
management.listener.port = {{ role_rabbitmq_management_port }} management.listener.port = {{ role_rabbitmq_management_port }}
management.load_definitions = /etc/rabbitmq/definitions.json management.load_definitions = /etc/rabbitmq/definitions.json
{% for key, value in rabbitmq_extra_config.items() %}
{{ key }} = {{ value }}
{% endfor %}
cluster_formation.peer_discovery_backend = rabbit_peer_discovery_classic_config cluster_formation.peer_discovery_backend = rabbit_peer_discovery_classic_config
{% for host in groups[role_rabbitmq_groups] %} {% for host in groups[role_rabbitmq_groups] %}

View File

@ -0,0 +1,5 @@
---
features:
- |
Adds the ability to configure rabbitmq via ``rabbitmq_extra_config``
which can be overriden in globals.yml.