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

27 lines
471 B
Plaintext
Raw Normal View History

#
# {{ ansible_managed }}
#
#
# 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
{% if not mariadb_slave_replicate_mysqldb %}
replicate-ignore-db=mysql
{% endif %}
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 :