|
|
|
|
|
|
|
|
{%- endif %} |
|
|
{%- endif %} |
|
|
{%- endif %} |
|
|
{%- endif %} |
|
|
|
|
|
|
|
|
{%- if pillar.get('galera', {}).master is defined %} |
|
|
|
|
|
|
|
|
{%- if pillar.get('galera', {}).get('master', {}).get('enabled', False) %} |
|
|
|
|
|
|
|
|
{%- from "galera/map.jinja" import master with context %} |
|
|
{%- from "galera/map.jinja" import master with context %} |
|
|
mysql.unix_socket: {{ master.socket }} |
|
|
mysql.unix_socket: {{ master.socket }} |
|
|
|
|
|
|
|
|
mysql.db: 'mysql' |
|
|
mysql.db: 'mysql' |
|
|
mysql.charset: 'utf8' |
|
|
mysql.charset: 'utf8' |
|
|
|
|
|
|
|
|
{%- elif pillar.get('galera', {}).slave is defined %} |
|
|
|
|
|
|
|
|
{%- elif pillar.get('galera', {}).get('slave', {}).get('enabled', False) %} |
|
|
|
|
|
|
|
|
{%- from "galera/map.jinja" import slave with context %} |
|
|
{%- from "galera/map.jinja" import slave with context %} |
|
|
mysql.unix_socket: {{ slave.socket }} |
|
|
mysql.unix_socket: {{ slave.socket }} |
|
|
|
|
|
|
|
|
mysql.db: 'mysql' |
|
|
mysql.db: 'mysql' |
|
|
mysql.charset: 'utf8' |
|
|
mysql.charset: 'utf8' |
|
|
|
|
|
|
|
|
{%- elif pillar.get('mysql', {}).server is defined %} |
|
|
|
|
|
|
|
|
{%- elif pillar.get('mysql', {}).get('server', {}).get('enabled', False) %} |
|
|
|
|
|
|
|
|
mysql.unix_socket: /var/run/mysqld/mysqld.sock |
|
|
mysql.unix_socket: /var/run/mysqld/mysqld.sock |
|
|
{%- if pillar.mysql.server.admin is defined %} |
|
|
{%- if pillar.mysql.server.admin is defined %} |