|
1 | 1 | ### Getting Started |
2 | 2 |
|
3 | | -The collection includes two roles in the current version. |
| 3 | +The collection includes six roles in the current version. |
4 | 4 |
|
5 | 5 | * icinga.repos: Role to manage repositories |
6 | 6 | * [Documentation: doc/role-repos](role-repos/role-repos.md) |
7 | 7 | * icinga.icinga2: Role to install and manage Icinga 2 instances. |
8 | 8 | * [Documentation: doc/role-icinga2](role-icinga2/role-icinga2.md) |
| 9 | +* icinga.icingadb: Role to install and manage IcingaDB, Icinga2's new data backend. |
| 10 | + * [Documentation: doc/role-icingadb](role-icingadb/role-icingadb.md) |
| 11 | +* icinga.icingadb_redis: Role to install and manage Redis, IcingaDB's cache backend. |
| 12 | + * [Documentation: doc/role-icingadb_redis](role-icingadb_redis/role-icingadb_redis.md) |
| 13 | +* icinga.icingaweb2: Role to install and manage Icinga Web 2. |
| 14 | + * [Documentation: doc/role-icingaweb2](role-icingaweb2/role-icingaweb2.md) |
| 15 | +* icinga.monitoring_plugins: Role to install and manage Icinga2 compatible monitoring plugins. |
| 16 | + * [Documentation: doc/role-monitoring_plugins](role-monitoring_plugins/role-monitoring_plugins.md) |
9 | 17 |
|
10 | 18 |
|
11 | 19 | --- |
@@ -39,6 +47,36 @@ ansible-galaxy collection build ansible-collection-icinga |
39 | 47 | ansible-galaxy collection install icinga-icinga-0.3.0.tar.gz |
40 | 48 | ``` |
41 | 49 |
|
| 50 | +## Databases |
| 51 | + |
| 52 | +Icinga2 relies on relational databases for many parts of its functionality. **None** of those databases get installed by the roles. You need to install and configure them yourself. For doing so, there are many ways available, e.g. the Ansible role [geerlingguy.mysql](https://galaxy.ansible.com/geerlingguy/mysql) for MySQL flavours (both MySQL and MariaDB) or [geerlingguy.postgresql](https://galaxy.ansible.com/geerlingguy/postgresql) for PostGresQL: |
| 53 | + |
| 54 | +```yaml |
| 55 | +- name: Configure databases for Icinga2 |
| 56 | + hosts: database |
| 57 | + vars: |
| 58 | + mysql_databases: |
| 59 | + - name: icingadb |
| 60 | + - name: icingaweb |
| 61 | + - name: vspheredb |
| 62 | + encoding: utf8mb4 |
| 63 | + collation: utf8mb4_unicode_ci |
| 64 | + - name: director |
| 65 | + mysql_users: |
| 66 | + - name: icingadb-user |
| 67 | + host: localhost |
| 68 | + password: icingadb-password |
| 69 | + priv: "icingadb.*:ALL" |
| 70 | + [...] |
| 71 | + roles: |
| 72 | + - role: geerlingguy.mysql |
| 73 | +``` |
| 74 | +
|
| 75 | +> [!NOTE] |
| 76 | +> Schema migrations needed for the respective Icinga components to work will be handled either by the respective roles or by the Icinga components themselves. |
| 77 | +
|
| 78 | +
|
| 79 | +
|
42 | 80 | ## Example Playbooks |
43 | 81 |
|
44 | 82 | This is an example on how to install an Icinga 2 server/master instance. |
|
0 commit comments