mirror of
https://github.com/HanXHX/ansible-mysql.git
synced 2026-04-11 13:52:10 +07:00
New release (#44)
* Manages MariaDB 10.6 + Debian 11
* Fix YAML lint
* Fix ansible lint
* Modernize TravisCI
* Fix service name depending OS version
* Add rsyslog on tests
* Remove useless variable in tests
* Use module mysql_replication instead of command for GTID setup
* Force 'mariadb' as service name if install from upstream
* Rename group vars file and valid YAML lint
* Galera install imrovements
* Do not force galera package name ('galera-3' was hardcoded)
* Prevent some crashes when galera is installed with mariadb at the same
time
* Install galera-3 on Buster + MariaDB from Debian repository
* Use FQDN Ansible modules
This commit is contained in:
@@ -43,7 +43,7 @@ mariadb_wait_timeout: 28800
|
||||
|
||||
# InnoDB settings.
|
||||
mariadb_innodb_buffer_pool_size: "{{ (ansible_memtotal_mb * 0.2) | round | int }}M"
|
||||
mariadb_innodb_log_file_size: "64M" # If this setting changes on a running system, you will break it! http://dev.mysql.com/doc/refman/5.6/en/innodb-data-log-reconfiguration.html
|
||||
mariadb_innodb_log_file_size: "64M" # If this setting changes on a running system, you will break it! http://dev.mysql.com/doc/refman/5.6/en/innodb-data-log-reconfiguration.html
|
||||
mariadb_innodb_log_buffer_size: '8M'
|
||||
mariadb_innodb_flush_log_at_trx_commit: '1'
|
||||
mariadb_innodb_lock_wait_timeout: 50
|
||||
@@ -62,9 +62,8 @@ mariadb_mysqldump_max_allowed_packet: '64M'
|
||||
mariadb_extra_configuration: {}
|
||||
|
||||
# Example:
|
||||
#mariadb_extra_configuration:
|
||||
# 'innodb_awsome_feature': 1
|
||||
|
||||
# mariadb_extra_configuration:
|
||||
# 'innodb_awsome_feature': 1
|
||||
|
||||
# -------------------------------------
|
||||
# Replication
|
||||
@@ -81,6 +80,8 @@ mariadb_replication_port: '3306'
|
||||
|
||||
mariadb_backup_dir: '/var/backups/tmp-mysql'
|
||||
|
||||
mariadb_service_name: '{{ mariadb_default_service_name if mariadb_origin == "default" else "mariadb" }}'
|
||||
|
||||
# Master
|
||||
mariadb_max_binlog_size: "100M"
|
||||
mariadb_expire_logs_days: "10"
|
||||
@@ -99,7 +100,7 @@ mariadb_slave_import_flush_dump: true
|
||||
mariadb_slave_ignore_db: []
|
||||
mariadb_slave_ignore_table: []
|
||||
# SSH user used to copy data
|
||||
mariadb_backup_user: "{{ ansible_user_id }}" # TODO: change var name
|
||||
mariadb_backup_user: "{{ ansible_user_id }}" # TODO: change var name
|
||||
## If data is already imported, you can specify position
|
||||
mariadb_master_log_file: null
|
||||
mariadb_master_log_pos: null
|
||||
@@ -116,7 +117,7 @@ mariadb_users: []
|
||||
# -------------------------------------
|
||||
# MariaDB
|
||||
# -------------------------------------
|
||||
mariadb_version: '10.3'
|
||||
mariadb_version: '10.6'
|
||||
mariadb_mirror_domain: "ftp.igh.cnrs.fr"
|
||||
# See: https://downloads.mariadb.org/mariadb/repositories
|
||||
mariadb_repository: "http://{{ mariadb_mirror_domain }}/pub/mariadb/repo/{{ mariadb_version }}/debian"
|
||||
@@ -127,11 +128,13 @@ mariadb_key_ids: ['0xcbcb082a1bb943db', '0xf1656f24c74cd1d8']
|
||||
# Galera
|
||||
# -------------------------------------
|
||||
mariadb_galera_resetup: false
|
||||
mariadb_wsrep_node_address: false # Set primary node IP
|
||||
mariadb_wsrep_node_address: false # Set primary node IP
|
||||
mariadb_galera_members: []
|
||||
mariadb_galera_primary_node: 'change_me' # See: https://github.com/ansible/ansible/issues/17453
|
||||
mariadb_galera_primary_node: 'change_me' # See: https://github.com/ansible/ansible/issues/17453
|
||||
mariadb_wsrep_stt_method: 'rsync'
|
||||
|
||||
mariadb_galera_package_name: 'galera-4'
|
||||
|
||||
# -------------------------------------
|
||||
# Debug
|
||||
# -------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user