Browse Source

Set mysql socket from galera's map.jinja

tags/0.4
Filip Pytloun 8 years ago
parent
commit
df61ff4173
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      salt/files/minion.conf

+ 3
- 2
salt/files/minion.conf View File

{%- 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 %}

Loading…
Cancel
Save