Merge "Add ignore_none_type to config_template"

This commit is contained in:
Jenkins 2017-06-27 21:00:40 +00:00 committed by Gerrit Code Review
commit 78a1259a10
3 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,8 @@
---
fixes:
- |
Mysql cnf files can now be properly overridden. The config_template
module has been extended to support valueless options, such as those that
are found in the my.cnf file(i.e. `quick` under the `mysqldump` section).
To use valueless options, use the `ignore_none_type` attribute of the
config_template module.

View File

@ -45,6 +45,7 @@
mode: "0644"
config_overrides: "{{ item.config_overrides }}"
config_type: "{{ item.config_type }}"
ignore_none_type: False
with_items:
- src: my.cnf.j2
dest: "{{ galera_etc_conf_file }}"

View File

@ -26,3 +26,8 @@ galera_server_old_package:
suse:
galera_mariadb_server_package: "mariadb"
galera_repo_url: "http://download.opensuse.org/repositories/server:/database/openSUSE_Leap_{{ ansible_distribution_version }}"
# Testing my.cnf overrides
galera_my_cnf_overrides:
sst:
sst-initial-timeout: 600