blob: 80f21060ad679ab55f080cd65f87a4ae5bdf9ed7 [file] [log] [blame]
[{{ output_name }}_output]
type = "AMQPOutput"
url = "amqp{% if values.ssl is defined and values.ssl.get('enabled', True) %}s{% endif %}://{{ values.user }}:{{ values.password }}@{{ values.host }}/{{ values.vhost }}"
exchange = "{{ values.exchange }}"
exchange_type = "{{ values.exchange_type }}"
message_matcher = "{{ values.message_matcher }}"
use_framing = true
encoder = "{{ values.encoder }}"
[{{ output_name }}_output.retries]
max_delay = "{{ values.get('max_delay', '30s') }}"
delay = "{{ values.get('delay', '250ms') }}"
max_retries = {{ values.get('max_retries', '-1') }}
{%- if values.ssl is defined and values.ssl.get('enabled', True) %}
[{{ output_name }}_output.tls]
cert_file = "{{ values.ssl.cert_file }}"
key_file = "{{ values.ssl.key_file }}"
{%- if values.ssl.ca_file is defined %}
root_cafile = "{{ values.ssl.ca_file }}"
{%- endif %}
{%- endif %}