diff --git a/ansible/roles/mariadb/templates/galera.cnf.j2 b/ansible/roles/mariadb/templates/galera.cnf.j2 index a55064bf776db5ccc26184d7b3040b2512fac3b5..146b186258c412e22f34a5ab465a50a120a9abdc 100644 --- a/ansible/roles/mariadb/templates/galera.cnf.j2 +++ b/ansible/roles/mariadb/templates/galera.cnf.j2 @@ -15,6 +15,7 @@ log-error=/var/log/kolla/mariadb/mariadb.log log-bin=mysql-bin binlog_format=ROW +expire_logs_days=14 default-storage-engine=innodb innodb_autoinc_lock_mode=2 diff --git a/releasenotes/notes/expire-mariadb-bin-logs-c3df2b87460ca807.yaml b/releasenotes/notes/expire-mariadb-bin-logs-c3df2b87460ca807.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d373a79da3ec18eb7eeb7b2d6af8b6de59583e86 --- /dev/null +++ b/releasenotes/notes/expire-mariadb-bin-logs-c3df2b87460ca807.yaml @@ -0,0 +1,3 @@ +--- +features: + - Automatically expire MariaDB binary logs after 14 days.