# The backend URL to use for distributed coordination. (string value)
#backend_url = file://$state_path
-
+{%- if controller.get('coordination', {}).get('enabled', False) %}
+ {%- if controller.coordination.get('backend', '') == 'mysql' %}
+ {%- set connection_x509_ssl_option = '' %}
+ {%- set _data = controller.database %}
+ {%- if _data.get('x509',{}).get('enabled',False) %}
+ {%- set connection_x509_ssl_option = '&ssl_ca=' ~ _data.x509.get('ca_file') ~ '&ssl_cert=' ~ _data.x509.get('cert_file') ~ '&ssl_key=' ~ _data.x509.get('key_file') %}
+ {%- endif %}
+backend_url = mysql://{{ _data.user }}:{{ _data.password }}@{{ _data.host }}:{{ _data.get('port', '3306') }}/{{ _data.name }}?charset=utf8{{ connection_x509_ssl_option|string }}
+ {%- endif %}
+{%- endif %}
[fc-zone-manager]