瀏覽代碼

Don't duplicate mysql information in case galera is used

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

+ 11
- 8
salt/files/minion.conf 查看文件

@@ -60,7 +60,17 @@ sentry_handler:
{%- 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
{%- if pillar.mysql.server.admin is defined %}
mysql.user: '{{ pillar.mysql.server.admin.user }}'
@@ -73,13 +83,6 @@ mysql.db: 'mysql'
mysql.charset: 'utf8'
{%- 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 %}

{%- if pillar.get('mongodb', {}).server is defined %}

Loading…
取消
儲存