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:
parent
6c2991306c
commit
ccf3b23cd4
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue