openqa/server: skip openqa.ini amqp section if vars not set

We don't want to include this section if the vars aren't set.
Not every openQA server has to be an AMQP publisher.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2022-06-07 13:35:07 -07:00
parent 6c2991306c
commit ccf3b23cd4

View file

@ -9,6 +9,7 @@ plugins = {{ openqa_webapi_plugins }}
hide_asset_types = repo hdd
parallel_cancel_whole_cluster = 0
{% if openqa_amqp_publisher_url is defined and openqa_amqp_publisher_url %}
[amqp]
topic_prefix = {{ openqa_amqp_publisher_prefix }}
url = {{ openqa_amqp_publisher_url }}
@ -18,6 +19,7 @@ cacertfile = {{ openqa_amqp_publisher_cacertfile }}
certfile = {{ openqa_amqp_publisher_certfile }}
keyfile = {{ openqa_amqp_publisher_keyfile }}
{% endif %}
{% endif %}
[audit/storage_duration]
startup = 7