25 lines
724 B
Markdown
25 lines
724 B
Markdown
MariaDB
|
|
=======
|
|
|
|
This role installs MariaDB, including:
|
|
- Monitoring with Monit and Munin
|
|
- Backups with automysqlbackup
|
|
|
|
## Configuration
|
|
|
|
Create a dictionary called `mysqld` and define your settings:
|
|
```YAML
|
|
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 |
|