From aa78e0881f0083ce7962596f94d3cae2c9935971 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Fri, 16 Dec 2016 15:29:58 +0100 Subject: [PATCH] library/roles/mysql/templates/server.cnf.j2: Fix the settings for the undefined parameters. dnet-efg/group_vars/efg_portal_dev/main.yml: Raise the max_allowed_packet setting. --- mysql/templates/server.cnf.j2 | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/mysql/templates/server.cnf.j2 b/mysql/templates/server.cnf.j2 index 01315257..344d04fb 100644 --- a/mysql/templates/server.cnf.j2 +++ b/mysql/templates/server.cnf.j2 @@ -16,9 +16,16 @@ net_buffer_length = 8K read_buffer_size = {{ mysqld_db_read_buffer_size }} read_rnd_buffer_size = {{ mysql_db_read_rnd_buffer_size }} myisam_sort_buffer_size = 16M -sql_mode = {{ mysqld_sql_mode | default(omit) }} -ft_stopword_file = {{ mysqld_ft_stopword_file | default(omit) }} -ft_min_word_len = {{ mysqld_ft_min_word_lenght | default(omit) }} + +{% if mysqld_sql_mode is defined %} +sql_mode = {{ mysqld_sql_mode }} +{% endif %} +{% if mysqld_ft_stopword_file is defined %} +ft_stopword_file = {{ mysqld_ft_stopword_file }} +{% endif %} +{% if mysqld_ft_min_word_lenght is defined %} +ft_min_word_len = {{ mysqld_ft_min_word_lenght }} +{% endif %} ft_boolean_syntax = '{{ mysql_ft_boolean_syntax | default('+ -><()~*:\"\"&|') }}' # Point the following paths to different dedicated disks