Added mysql_log_bin variable to enable binary logs

This commit is contained in:
Patrick Marchand 2019-09-12 08:54:18 -04:00
parent 13b7ca204f
commit 109191ccd8
4 changed files with 6 additions and 2 deletions

View File

@ -18,6 +18,7 @@ The **patch** part changes incrementally at each release.
* webapps/evoadmin-web Overload templates if needed
* redis: max clients is configurable
* generate-ldif: support MariaDB 10.3
* mysql: activate binary logs by specifying log_bin path
### Changed
* elasticsearch: listen on local interface only by default

View File

@ -29,7 +29,7 @@ Tasks are extracted in several files, included in `tasks/main.yml` :
* `mysql_tmp_table_size`: (default: `Null`, default evolinux config is then used) ;
* `mysql_max_heap_table_size`: (default: `Null`, default evolinux config is then used) ;
* `mysql_query_cache_limit`: (default: `Null`, default evolinux config is then used) ;
* `mysql_query_cache_size`: (default: `Null`, default evolinux config is then used) ;
* `mysql_log_bin`: (default: `Null`, activates binlogs if used) ;
* `mysql_custom_datadir`: custom datadir.
* `mysql_custom_tmpdir`: custom tmpdir.
* `general_alert_email`: email address to send various alert messages (default: `root@localhost`).

View File

@ -29,7 +29,7 @@ mysql_tmp_table_size: Null
mysql_max_heap_table_size: Null
mysql_query_cache_limit: Null
mysql_query_cache_size: Null
mysql_log_bin: Null
mysql_cron_optimize: True
mysql_cron_optimize_frequency: weekly

View File

@ -29,3 +29,6 @@ query_cache_limit = {{ mysql_query_cache_limit }}
{% if mysql_query_cache_limit %}
query_cache_size = {{ mysql_query_cache_size }}
{% endif %}
{% if mysql_log_bin %}
log_bin = {{ mysql_log_bin }}
{% endif %}