ansible-role-mariadb/README.md

724 B

MariaDB

This role installs MariaDB, including:

  • Monitoring with Monit and Munin
  • Backups with automysqlbackup

Configuration

Create a dictionary called mysqld and define your settings:

mysqld:
  bind_address: 0.0.0.0
  slow_query_log: 1
  ...

There are additional variables to configure automysqlbackup:

Varibles Defaults Notes
automysqlbackup_backupdir /var/lib/automysqlbackup Directory to save backups
automysqlbackup_dbhost localhost Database host
automysqlbackup_mailaddr root Mail address to send reports to
automysqlbackup_postbackup /usr/local/bin/automysqlbackup_post_script Complete path to a post backup script