Fixes #20: Allow configuration of expire-logs-days.

pull/63/head
Jeff Geerling 9 years ago
parent 361126b8b0
commit 53e27f8fd5
  1. 1
      README.md
  2. 1
      defaults/main.yml
  3. 2
      templates/my.cnf.j2

@ -63,6 +63,7 @@ The rest of the settings in `defaults/main.yml` control MySQL's memory usage. Th
mysql_server_id: "1"
mysql_max_binlog_size: "100M"
mysql_expire_logs_days: "10"
mysql_replication_role: master
mysql_replication_master: ''
mysql_replication_user: []

@ -71,6 +71,7 @@ mysql_users: []
# Replication settings (replication is only enabled if master/user have values).
mysql_server_id: "1"
mysql_max_binlog_size: "100M"
mysql_expire_logs_days: "10"
mysql_replication_role: master
mysql_replication_master: ''
# Same keys as `mysql_users` above.

@ -16,7 +16,7 @@ server-id = {{ mysql_server_id }}
{% if mysql_replication_role == 'master' %}
log_bin = mysql-bin
log-bin-index = mysql-bin.index
expire_logs_days = 10
expire_logs_days = {{ mysql_expire_logs_days }}
max_binlog_size = {{ mysql_max_binlog_size }}
{% for db in mysql_databases %}