Ver código fonte

Fixing True/False to true/false in my.cnf

master
Nate Bohman 5 anos atrás
pai
commit
0700519a8a
1 arquivos alterados com 11 adições e 11 exclusões
  1. +11
    -11
      galera/files/my.cnf

+ 11
- 11
galera/files/my.cnf Ver arquivo

@@ -3,24 +3,24 @@
# All files in this package is subject to the GPL v2 license
# More information is in the COPYING file in the top directory of this package.
# Copyright (C) 2011 severalnines.com
{%- if pillar.galera.get('master',{}).get('enabled', False) %}
{%- if pillar.galera.get('master',{}).get('enabled', false) == true %}
{%- from "galera/map.jinja" import master with context %}
{%- set service = master %}
{%- endif %}
{%- if pillar.galera.get('slave',{}).get('enabled', False) %}
{%- if pillar.galera.get('slave',{}).get('enabled', false) == true%}
{%- from "galera/map.jinja" import slave with context %}
{%- set service = slave %}
{%- endif %}

[mysql]
{% if service.get('ssl', {}).get('enabled', False) %}
{% if service.get('ssl', {}).get('enabled', false) == true %}
ssl-ca={{ service.ssl.ca_file }}
ssl-cert={{ service.ssl.cert_file }}
ssl-key={{ service.ssl.key_file }}
{% endif %}

[mysqld_safe]
{%- if not service.get('error_log_enabled', False) %}
{%- if not service.get('error_log_enabled', false) == true %}
syslog
{%- endif %}

@@ -35,7 +35,7 @@ collation-server=utf8mb4_unicode_ci
init-connect='SET NAMES utf8mb4'
character-set-server=utf8mb4
default-storage-engine=innodb
{%- if service.get('error_log_enabled', False) %}
{%- if service.get('error_log_enabled', false) == true %}
log_error = {{ service.get('error_log_path', '/var/log/mysql/error.log') }}
{%- endif %}
skip-external-locking
@@ -65,12 +65,12 @@ innodb_flush_method=O_DIRECT
innodb_doublewrite=0
innodb_autoinc_lock_mode=2
innodb_locks_unsafe_for_binlog=1
{%- if service.get('wsrep_enabled', False) %}
wsrep_on=OFF
{%- else %}
{%- if service.get('wsrep_enabled', false) == true %}
wsrep_on=ON
{%- else %}
wsrep_on=OFF
{%- endif %}
{%- if service.get('members', []) |length > 1 %}
{%- if service.get('members', []) | length > 1 %}
wsrep_cluster_address="gcomm://{% for member in service.members %}{{ member.host}}:4567{% if not loop.last %},{% endif %}{% endfor %}/?pc.wait_prim=no"
{%- else %}
wsrep_cluster_address="gcomm://"
@@ -85,12 +85,12 @@ wsrep_node_address={{ service.bind.address }}
wsrep_provider_options="gcache.size = 256M"
wsrep_provider_options="gmcast.listen_addr = tcp://{{ service.bind.address }}:4567"

{% if service.get('ssl', {}).get('enabled', False) %}
{% if service.get('ssl', {}).get('enabled', false) == true %}
wsrep_provider_options="socket.ssl=yes;socket.ssl_key={{ service.ssl.key_file }};socket.ssl_cert={{ service.ssl.cert_file }};socket.ssl_ca={{ service.ssl.ca_file }}"
{%- if service.ssl.ciphers is defined %}
{%- set _ciphers = [] %}
{%- for cipher_name, cipher in service.ssl.get('ciphers', {}).iteritems() %}
{%- if cipher.get('enabled', False) %}
{%- if cipher.get('enabled', false) == true %}
{%- if cipher.name is defined %}
{%- do _ciphers.append(cipher.name) %}
{%- else %}

Carregando…
Cancelar
Salvar