ansible-mysql/templates/etc/mysql/mariadb.conf.d/40-slave.cnf.j2

23 lines
474 B
Plaintext
Raw Normal View History

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