mirror of
https://github.com/HanXHX/ansible-mysql.git
synced 2026-02-24 10:13:30 +07:00
🔨 Add molecule
This commit is contained in:
committed by
Emilien M
parent
98237aab2f
commit
9a79dd8d63
8
molecule/_shared/inventory/group_vars/all.yml
Normal file
8
molecule/_shared/inventory/group_vars/all.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
|
||||
mariadb_bind_address: '0.0.0.0'
|
||||
mariadb_extra_configuration:
|
||||
innodb_commit_concurrency: 0
|
||||
mariadb_install_xtrabackup_package: true
|
||||
mariadb_slow_query_log_enabled: true
|
||||
mariadb_debug_role: true
|
||||
4
molecule/_shared/inventory/group_vars/galera.yml
Normal file
4
molecule/_shared/inventory/group_vars/galera.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
---
|
||||
|
||||
mariadb_use_galera: true
|
||||
mariadb_galera_members: "{{ groups['galera'] }}"
|
||||
19
molecule/_shared/inventory/group_vars/master.yml
Normal file
19
molecule/_shared/inventory/group_vars/master.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
|
||||
# Master durability
|
||||
mariadb_sync_binlog: '1'
|
||||
mariadb_innodb_flush_log_at_trx_commit: '1'
|
||||
|
||||
mariadb_databases:
|
||||
- 'testrepl'
|
||||
- 'norepl'
|
||||
|
||||
mariadb_users:
|
||||
- name: 'replication'
|
||||
password: '1a2b3c'
|
||||
priv: '*.*:REPLICATION SLAVE'
|
||||
host: '%'
|
||||
mariadb_replication_master: true
|
||||
mariadb_replication_slave: false
|
||||
|
||||
# vim: set ft=yaml :
|
||||
11
molecule/_shared/inventory/group_vars/slave.yml
Normal file
11
molecule/_shared/inventory/group_vars/slave.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
|
||||
mariadb_replication_master: false
|
||||
mariadb_replication_slave: true
|
||||
mariadb_replication_user: 'replication'
|
||||
mariadb_replication_password: '1a2b3c'
|
||||
mariadb_slave_ignore_db: ['norepl']
|
||||
mariadb_slave_import_from: "{{ groups['master'][0] }}"
|
||||
mariadb_replication_host: "{{ groups['master'][0] }}"
|
||||
|
||||
# vim: set ft=yaml :
|
||||
Reference in New Issue
Block a user