Ansible Role icingadb_web
IcingaDB consists of multiple components. This role only installs IcingaDB Web. Generally, the IcingaDB daemon is also required, use the linuxfabrik.lfops.icingadb role for that. Run the linuxfabrik.lfops.icingadb role first to initialise the database.
Mandatory Requirements
A configured Icinga2 Master Setup. This can be done using the linuxfabrik.lfops.setup_icinga2_master playbook.
Mandatory Role Variables
Variable |
Description |
---|---|
|
The account for accessing the Icinga2 API. |
Example:
# mandatory
icingadb_web__api_user_login:
username: 'icingadb-api-user'
password: 'linuxfabrik'
Optional Role Variables
Variable |
Description |
Default Value |
---|---|---|
|
The host on which the Icinga2 API is reachable. |
|
|
The port on which the Icinga2 API is reachable. |
|
|
The host on which the IcingaDB SQL database is reachable. |
|
|
The user account for accessing the IcingaDB SQL database. Currently, only MySQL is supported. |
|
|
The name of the IcingaDB SQL database. |
|
|
Number. Sets the maximum number of characters to display in plugin output. |
|
|
Path to the CA certificate used to check the Redis TLS certificate. |
unset |
|
The host on which Redis instance is reachable. |
|
|
Allow insecure connections to Redis via TLS. |
|
|
The password for the Redis instance, if authentication is enabled. |
`‘{{ icingadb__redis_password |
|
The port on which Redis instance is reachable. |
|
|
Enable TLS when connecting to Redis. |
|
|
The host on which the secondary Redis instance is reachable. |
unset |
|
The password for the the secondary Redis instance, if authentication is enabled. |
|
|
The port on which the secondary Redis instance is reachable. |
|
Example:
# optional
icingadb_web__api_host: 'localhost'
icingadb_web__api_port: 5665
icingadb_web__database_host: '127.0.0.1'
icingadb_web__database_login:
username: 'icingadb'
password: 'linuxfabrik'
icingadb_web__database_name: 'icingadb'
icingadb_web__plugin_output_character_limit: 20000
icingadb_web__redis_ca: '/etc/pki/tls/certs/rootCA.pem'
icingadb_web__redis_host: '127.0.0.1'
icingadb_web__redis_insecure: true
icingadb_web__redis_password: 'linuxfabrik'
icingadb_web__redis_port: 6379
icingadb_web__redis_tls: true
icingadb_web__redis2_host: 'master2.example.com'
icingadb_web__redis2_password: 'linuxfabrik'
icingadb_web__redis2_port: 6379