ansible-role-mariadb/README.md

32 lines
926 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
No configuration of the database server will take place.
2023-02-07 19:50:34 +01:00
## Variables
2023-02-07 19:50:34 +01:00
You can use the following variables to adopt the role to your needs. Place them in a dictionary called `mariadb`:
2023-02-07 19:50:34 +01:00
| Varible | Value | Notes |
2023-02-07 19:50:34 +01:00
|--|--|--|
| `bind_address` | string | Address to bind the MariaDB server to |
2023-02-07 19:50:34 +01:00
Ecample:
2023-02-07 19:50:34 +01:00
```YAML
mariadb:
bind_address: "10.0.0.2"
```
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 |