ansible-mysql/templates/etc/mysql/conf.d/50-master.cnf.j2

21 lines
384 B
Django/Jinja

#
# {{ ansible_managed }}
#
#
# Replication master
[mysqld]
server_id={{ mysql_server_id }}
log_bin = mysql-bin
log-bin-index = mysql-bin.index
expire_logs_days = {{ mysql_expire_logs_days }}
max_binlog_size = {{ mysql_max_binlog_size }}
{% if mysql_vendor == 'mariadb' and mysql_gtid %}
# MariaDB only
gtid_domain_id={{ mysql_gtid_domain_id }}
{% endif %}
; vim: set ft=dosini :