Allow setting a custom mysql server_id

This commit is contained in:
Patrick Marchand 2019-09-12 10:16:29 -04:00
parent 508f725193
commit 0009272462
4 changed files with 6 additions and 0 deletions

View File

@ -19,6 +19,7 @@ The **patch** part changes incrementally at each release.
* redis: max clients is configurable
* generate-ldif: support MariaDB 10.3
* mysql: activate binary logs by specifying log_bin path
* mysql: specify a custom server_id
### Changed
* elasticsearch: listen on local interface only by default

View File

@ -31,6 +31,7 @@ Tasks are extracted in several files, included in `tasks/main.yml` :
* `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_server_id`: (default: `Null`, MySQL version default is then 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

@ -30,6 +30,7 @@ mysql_max_heap_table_size: Null
mysql_query_cache_limit: Null
mysql_query_cache_size: Null
mysql_log_bin: Null
mysql_server_id: Null
mysql_cron_optimize: True
mysql_cron_optimize_frequency: weekly

View File

@ -32,3 +32,6 @@ query_cache_size = {{ mysql_query_cache_size }}
{% if mysql_log_bin %}
log_bin = {{ mysql_log_bin }}
{% endif %}
{% if mysql_server_id %}
server_id = {{ mysql_server_id }}
{% endif %}