Merge "Change Mariadb default character set to utf8"

This commit is contained in:
Jenkins 2016-09-14 13:14:26 +00:00 committed by Gerrit Code Review
commit 557c02fe77
1 changed files with 10 additions and 0 deletions

View File

@ -4,6 +4,12 @@
{#- mariadb will fail to start #}
{%- set wsrep_driver = 'none' if orchestration_engine == 'KUBERNETES' else wsrep_driver %}
[client]
default-character-set=utf8
[mysql]
default-character-set=utf8
[mysqld]
bind-address={{ api_interface_address }}
port={{ mariadb_port }}
@ -14,6 +20,10 @@ binlog_format=ROW
default-storage-engine=innodb
innodb_autoinc_lock_mode=2
collation-server = utf8_unicode_ci
init-connect='SET NAMES utf8'
character-set-server = utf8
datadir=/var/lib/mysql/
wsrep_cluster_address=gcomm://{% if (groups['mariadb'] | length) > 1 %}{% for host in groups['mariadb'] %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ mariadb_wsrep_port }}{% if not loop.last %},{% endif %}{% endfor %}{% endif %}