Browse Source

Fix galera.slave setup in minion.conf

tags/0.4
Filip Pytloun 8 years ago
parent
commit
07664c180c
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      salt/files/minion.conf

+ 9
- 0
salt/files/minion.conf View File

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

Loading…
Cancel
Save