Przeglądaj źródła

Update conditions for mysql settings in minion.conf

There was a wrong assumption that if galera.master or
galera.slave or mysql.server was defined in pillar we tried
to pick user/password from pillar.
This patch updates condition to ensure that enabled attribute
set to True.

Related-Prod: PROD-16658

Change-Id: I9cdd9259000d7fc648b41d7402dc8ffe9659955b
pull/70/merge
Vasyl Saienko 7 lat temu
rodzic
commit
df7b5f0f32
1 zmienionych plików z 3 dodań i 3 usunięć
  1. +3
    -3
      salt/files/minion.conf

+ 3
- 3
salt/files/minion.conf Wyświetl plik

@@ -92,7 +92,7 @@ sentry_handler:
{%- endif %}
{%- endif %}

{%- if pillar.get('galera', {}).master is defined %}
{%- if pillar.get('galera', {}).get('master', {}).get('enabled', False) %}

{%- from "galera/map.jinja" import master with context %}
mysql.unix_socket: {{ master.socket }}
@@ -101,7 +101,7 @@ mysql.pass: '{{ pillar.galera.master.admin.password }}'
mysql.db: 'mysql'
mysql.charset: 'utf8'

{%- elif pillar.get('galera', {}).slave is defined %}
{%- elif pillar.get('galera', {}).get('slave', {}).get('enabled', False) %}

{%- from "galera/map.jinja" import slave with context %}
mysql.unix_socket: {{ slave.socket }}
@@ -110,7 +110,7 @@ mysql.pass: '{{ pillar.galera.slave.admin.password }}'
mysql.db: 'mysql'
mysql.charset: 'utf8'

{%- elif pillar.get('mysql', {}).server is defined %}
{%- elif pillar.get('mysql', {}).get('server', {}).get('enabled', False) %}

mysql.unix_socket: /var/run/mysqld/mysqld.sock
{%- if pillar.mysql.server.admin is defined %}

Ładowanie…
Anuluj
Zapisz