瀏覽代碼

Fix galera.slave setup in minion.conf

tags/0.4
Filip Pytloun 8 年之前
父節點
當前提交
07664c180c
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. +9
    -0
      salt/files/minion.conf

+ 9
- 0
salt/files/minion.conf 查看文件

@@ -69,6 +69,15 @@ mysql.pass: '{{ pillar.galera.master.admin.password }}'
mysql.db: 'mysql'
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 %}

mysql.unix_socket: /var/run/mysqld/mysqld.sock

Loading…
取消
儲存