
We don't issue certififcate for localhost, and mysqlclient acts as a localhost connection while connecting thorugh socket as well. While issuing cert for localhost may lead to unpredictable results we just avoid verifying certificate when connecting locally. Change-Id: I556ae69c33ab9cc984d7c01868403be49faa0dbc
17 lines
370 B
Django/Jinja
17 lines
370 B
Django/Jinja
# {{ ansible_managed }}
|
|
|
|
[client]
|
|
host={% if inventory_hostname in galera_cluster_members %}
|
|
localhost
|
|
{% else %}
|
|
{{ galera_address }}
|
|
{% endif %}
|
|
user={{ galera_root_user }}
|
|
password={{ galera_root_password }}
|
|
{% if galera_use_ssl %}
|
|
ssl
|
|
{% if galera_ssl_verify and inventory_hostname not in galera_cluster_members %}
|
|
ssl-verify-server-cert
|
|
{% endif %}
|
|
{% endif %}
|