ansible-role-mariadb/README.md

26 lines
724 B
Markdown
Raw Normal View History

2023-02-07 19:50:34 +01:00
MariaDB
=======
This role installs MariaDB, including:
- Monitoring with Monit and Munin
- Backups with automysqlbackup
2023-02-07 19:50:34 +01:00
2023-10-14 10:43:06 +02:00
## Configuration
2023-02-07 19:50:34 +01:00
2023-10-14 10:43:06 +02:00
Create a dictionary called `mysqld` and define your settings:
2023-02-07 19:50:34 +01:00
```YAML
2023-10-14 10:43:06 +02:00
mysqld:
bind_address: 0.0.0.0
slow_query_log: 1
...
2023-02-07 19:50:34 +01:00
```
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 |