Add the abillity to configure the logging options

Add the ability to configure the logging options for the rabbitmq-server
via the rabbitmq_log variable and key-value pairs

Change-Id: If9f28f29311150ed7b8ba61d2ddf7e12ca07d3c4
This commit is contained in:
Niklas Schwarz 2023-12-07 11:51:29 +01:00
parent 83d8ec2a30
commit d10da56560
3 changed files with 22 additions and 2 deletions

View File

@ -250,6 +250,11 @@ rabbitmq_hipe_compile: False
# Disable non-TLS listeners
rabbitmq_disable_non_tls_listeners: False
# RabbitMQ logging options
# See https://www.rabbitmq.com/logging.html for the logging options
rabbitmq_log:
journald: True
file: False
# RabbitMQ policies
# Used to tune performance characteristics of OpenStack messaging

View File

@ -0,0 +1,9 @@
---
features:
- |
Add the abbility to configure the logging options with the variable
``rabbitmq_log`` of the rabbitmq-server using key-value pairs. The
default values for journald (true) and file (false) are keept but
more options (see https://www.rabbitmq.com/logging.html) can be
configured now.

View File

@ -1,8 +1,14 @@
collect_statistics_interval = {{ rabbitmq_collect_statistics_interval }}
log.journald = true
log.file = false
{% for key, value in rabbitmq_log.items() %}
{% if value is boolean %}
log.{{ key }} = {{ value | lower }}
{% else %}
log.{{ key }} = {{ value }}
{% endif%}
{% endfor %}
heartbeat = 640
ssl_handshake_timeout = 20000
handshake_timeout = 40000