@@ -74,7 +74,8 @@ mysql.charset: 'utf8' | |||
{%- endif %} | |||
{%- if pillar.get('galera', {}).master is defined %} | |||
mysql.unix_socket: /var/run/mysqld/mysqld.sock | |||
{%- from "galera/map.jinja" import master with context %} | |||
mysql.unix_socket: {{ master.socket }} | |||
mysql.user: '{{ pillar.galera.master.admin.user }}' | |||
mysql.pass: '{{ pillar.galera.master.admin.password }}' | |||
mysql.db: 'mysql' | |||
@@ -140,4 +141,4 @@ logstash_zmq_handler: | |||
version: 1 | |||
{%- endif %} | |||
{%- endfor %} | |||
{%- endfor %} |