In certain use cases, you may be listening on a different interface and it is not possible to listen to multiple interfaces with MySQL. This changes the behaviour to connect via the local socket, as Galera treats 'localhost' as a connection via the UNIX socket and '127.0.0.1' as using the TCP socket. This will allow using Galera on a specific interface while still letting the bootstrap process talk to the local machine via the socket which is still available. Change-Id: Ib46f91e0a6becc934984d372bc51fc2aa77a0c95
11 lines
211 B
Django/Jinja
11 lines
211 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 }}
|