|
|
|
|
|
|
|
|
mysql.db: 'mysql' |
|
|
mysql.db: 'mysql' |
|
|
mysql.charset: 'utf8' |
|
|
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 %} |
|
|
{%- elif pillar.get('mysql', {}).server is defined %} |
|
|
|
|
|
|
|
|
mysql.unix_socket: /var/run/mysqld/mysqld.sock |
|
|
mysql.unix_socket: /var/run/mysqld/mysqld.sock |