2023-02-07 19:50:34 +01:00
|
|
|
MariaDB
|
|
|
|
=======
|
|
|
|
|
2023-03-10 20:14:32 +01:00
|
|
|
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-11-04 12:38:21 +01:00
|
|
|
Create a dictionary called `mysqld` and define your settings.
|
|
|
|
You can use all upstream configuration items:
|
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
|
|
|
```
|
2023-03-10 20:14:32 +01:00
|
|
|
|
2023-11-04 12:38:21 +01:00
|
|
|
## Backup
|
2023-03-10 20:14:32 +01:00
|
|
|
|
2023-11-04 12:38:21 +01:00
|
|
|
For daily backups we use automysqlbackup. You can configure it via the dict
|
|
|
|
`automysqlbackup_config`. You can use every upstream configuration item in this dict.
|
|
|
|
Just lowercase it. Note: You have to use _true_ and _yes_ as boolean values and you need to quote them.
|
|
|
|
|
|
|
|
Have a look at `defaults/main.yml` for our defaults.
|