Ansible Role icingaweb2_module_director
This role installs and configures the IcingaWeb2 Director Module, and deploys the baskets from the Linuxfabrik Monitoring Plugins.
This role is tested with the following IcingaWeb2 Director Module versions:
- 1.10.2 
- 1.10.2.2023042001 
Mandatory Requirements
- A configured IcingaWeb2. This can be done using the linuxfabrik.lfops.icingaweb2 role. 
- A SQL database and user. This can be done using the linuxfabrik.lfops.mariadb_server role. 
Mandatory Role Variables
| Variable | Description | 
|---|---|
| 
 | The account for accessing the Icinga2 API. | 
| 
 | The user account for accessing the Director SQL database. Currently, only MySQL is supported. | 
| 
 | A IcingaWeb2 account with the  | 
| 
 | String. Which version of the monitoring plugins should be deployed? Possible options: 
 lfops__monitoring_plugins_versionfor convenience. | 
| 
 | The module version to install. Possible options from either: 
 icingaweb2_module_director__url. | 
Example:
# mandatory
icingaweb2_module_director__api_user_login:
  username: 'icinga-director-api'
  password: 'linuxfabrik'
icingaweb2_module_director__database_login:
  username: 'icinga_director_user'
  password: 'linuxfabrik'
icingaweb2_module_director__enrolment_user_login:
  username: 'enrolment-user'
  password: 'linuxfabrik'
icingaweb2_module_director__monitoring_plugins_version: '1.2.0.11'
icingaweb2_module_director__version: 'v1.8.1.2021090901'
Optional Role Variables
| Variable | Description | Default Value | 
|---|---|---|
| 
 | The endpoint name for accessing the Icinga2 API. | 
 | 
| 
 | The host for accessing the Icinga2 API. | 
 | 
| 
 | The port for accessing the Icinga2 API. | 
 | 
| 
 | The host of the SQL database server. | 
 | 
| 
 | The name of the Director SQL database. | 
 | 
| 
 | Force run the kickstart. Sometimes the check if it is required is flawed. | 
 | 
| 
 | Enables or disables the director service, analogous to  | 
 | 
| 
 | Bool. Should the Linuxfabrik Monitoring Plugins Basket be generated and imported or not? | 
 | 
| 
 | The URL from where to download the Director. Defaults to the Linuxfabrik Fork of the Icinga Director. If using the official Icinga Director, the link is  | 
 | 
Example:
# optional
icingaweb2_module_director__api_endpoint: '{{ icinga2_master__cn }}'
icingaweb2_module_director__api_host: 'localhost'
icingaweb2_module_director__api_port: 5665
icingaweb2_module_director__database_host: 'localhost'
icingaweb2_module_director__database_name: 'icinga_director'
icingaweb2_module_director__force_kickstart: true
icingaweb2_module_director__service_enabled: true
icingaweb2_module_director__skip_basket_import: true
icingaweb2_module_director__url: 'https://github.com/Icinga/icingaweb2-module-director/archive/{{ icingaweb2_module_director__version }}.tar.gz'