|
|
|
|
|
|
|
|
{%- endif %} |
|
|
{%- endif %} |
|
|
{%- endif %} |
|
|
{%- endif %} |
|
|
|
|
|
|
|
|
{%- if pillar.get('mysql', {}).server is defined %} |
|
|
|
|
|
|
|
|
{%- if pillar.get('galera', {}).master is defined %} |
|
|
|
|
|
|
|
|
|
|
|
{%- 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' |
|
|
|
|
|
mysql.charset: 'utf8' |
|
|
|
|
|
|
|
|
|
|
|
{%- elif pillar.get('mysql', {}).server is defined %} |
|
|
|
|
|
|
|
|
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 %} |
|
|
mysql.user: '{{ pillar.mysql.server.admin.user }}' |
|
|
mysql.user: '{{ pillar.mysql.server.admin.user }}' |
|
|
|
|
|
|
|
|
mysql.charset: 'utf8' |
|
|
mysql.charset: 'utf8' |
|
|
{%- endif %} |
|
|
{%- endif %} |
|
|
|
|
|
|
|
|
{%- if pillar.get('galera', {}).master is defined %} |
|
|
|
|
|
{%- 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' |
|
|
|
|
|
mysql.charset: 'utf8' |
|
|
|
|
|
{%- endif %} |
|
|
{%- endif %} |
|
|
|
|
|
|
|
|
{%- if pillar.get('mongodb', {}).server is defined %} |
|
|
{%- if pillar.get('mongodb', {}).server is defined %} |