|
|
|
|
|
|
|
|
{%- endif %} |
|
|
{%- endif %} |
|
|
|
|
|
|
|
|
{%- if pillar.get('galera', {}).master is defined %} |
|
|
{%- 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.user: '{{ pillar.galera.master.admin.user }}' |
|
|
mysql.pass: '{{ pillar.galera.master.admin.password }}' |
|
|
mysql.pass: '{{ pillar.galera.master.admin.password }}' |
|
|
mysql.db: 'mysql' |
|
|
mysql.db: 'mysql' |
|
|
|
|
|
|
|
|
version: 1 |
|
|
version: 1 |
|
|
{%- endif %} |
|
|
{%- endif %} |
|
|
|
|
|
|
|
|
{%- endfor %} |
|
|
|
|
|
|
|
|
{%- endfor %} |