2024-08-26 21:48:03 +07:00
|
|
|
# -------------------------------------------
|
2015-08-11 15:22:58 +07:00
|
|
|
# {{ ansible_managed }}
|
2024-08-26 21:48:03 +07:00
|
|
|
# -------------------------------------------
|
2015-08-11 15:22:58 +07:00
|
|
|
|
|
|
|
# Replication slave
|
|
|
|
|
|
|
|
[mysqld]
|
2018-03-17 23:28:54 +07:00
|
|
|
server_id={{ mariadb_server_id }}
|
|
|
|
{% if mariadb_slave_readonly %}
|
2015-08-11 15:22:58 +07:00
|
|
|
read-only
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
# --> Ignore DB/tables
|
2018-03-17 23:28:54 +07:00
|
|
|
{% for db in mariadb_slave_ignore_db %}
|
2015-08-11 15:22:58 +07:00
|
|
|
replicate-ignore-db={{ db }}
|
|
|
|
{% endfor %}
|
2018-03-17 23:28:54 +07:00
|
|
|
{% for t in mariadb_slave_ignore_table %}
|
2015-08-11 15:22:58 +07:00
|
|
|
replicate-ignore-table={{ t }}
|
|
|
|
{% endfor %}
|
|
|
|
# <-- Ignore DB/tables
|
|
|
|
|
|
|
|
; vim: set ft=dosini :
|