mirror of
https://github.com/HanXHX/ansible-mysql.git
synced 2026-02-24 10:13:30 +07:00
Replication OK (transfert from another git repo)
This commit is contained in:
1
tests/group_vars/default
Normal file
1
tests/group_vars/default
Normal file
@@ -0,0 +1 @@
|
||||
mysql_origin: 'default'
|
||||
1
tests/group_vars/mariadb
Normal file
1
tests/group_vars/mariadb
Normal file
@@ -0,0 +1 @@
|
||||
mysql_vendor: 'mariadb'
|
||||
21
tests/group_vars/master
Normal file
21
tests/group_vars/master
Normal file
@@ -0,0 +1,21 @@
|
||||
# Master must listen for replication
|
||||
mysql_bind_address: '0.0.0.0'
|
||||
|
||||
# Master durability
|
||||
mysql_sync_binlog: '1'
|
||||
mysql_innodb_flush_log_at_trx_commit: '1'
|
||||
|
||||
mysql_databases:
|
||||
- 'testrepl'
|
||||
- 'norepl'
|
||||
|
||||
mysql_users:
|
||||
- name: 'replication'
|
||||
password: '1a2b3c'
|
||||
priv: '*.*:"REPLICATION SLAVE"'
|
||||
host: '%'
|
||||
mysql_replication_master: true
|
||||
mysql_replication_slave: false
|
||||
mysql_server_id: 1
|
||||
|
||||
# vim: set ft=yaml :
|
||||
1
tests/group_vars/mysql
Normal file
1
tests/group_vars/mysql
Normal file
@@ -0,0 +1 @@
|
||||
mysql_vendor: 'mysql'
|
||||
1
tests/group_vars/percona
Normal file
1
tests/group_vars/percona
Normal file
@@ -0,0 +1 @@
|
||||
mysql_vendor: 'percona'
|
||||
9
tests/group_vars/slave
Normal file
9
tests/group_vars/slave
Normal file
@@ -0,0 +1,9 @@
|
||||
mysql_replication_master: false
|
||||
mysql_replication_slave: true
|
||||
mysql_replication_user: 'replication'
|
||||
mysql_replication_password: '1a2b3c'
|
||||
mysql_replication_host: '{{ his_master }}'
|
||||
mysql_server_id: 2
|
||||
mysql_slave_ignore_db: ['norepl']
|
||||
|
||||
# vim: set ft=yaml :
|
||||
1
tests/group_vars/upstream
Normal file
1
tests/group_vars/upstream
Normal file
@@ -0,0 +1 @@
|
||||
mysql_origin: 'upstream'
|
||||
Reference in New Issue
Block a user