|
|
@@ -69,6 +69,15 @@ mysql.pass: '{{ pillar.galera.master.admin.password }}' |
|
|
|
mysql.db: 'mysql' |
|
|
|
mysql.charset: 'utf8' |
|
|
|
|
|
|
|
{%- elif pillar.get('galera', {}).slave is defined %} |
|
|
|
|
|
|
|
{%- from "galera/map.jinja" import slave with context %} |
|
|
|
mysql.unix_socket: {{ slave.socket }} |
|
|
|
mysql.user: '{{ pillar.galera.slave.admin.user }}' |
|
|
|
mysql.pass: '{{ pillar.galera.slave.admin.password }}' |
|
|
|
mysql.db: 'mysql' |
|
|
|
mysql.charset: 'utf8' |
|
|
|
|
|
|
|
{%- elif pillar.get('mysql', {}).server is defined %} |
|
|
|
|
|
|
|
mysql.unix_socket: /var/run/mysqld/mysqld.sock |