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

Tags

Tag

What it does

icingaweb2_module_director

Installs and configures the IcingaWeb2 Director Module

icingaweb2_module_director:basket

Deploys the baskets from the Linuxfabrik Monitoring Plugins.

icingaweb2_module_director:configure

Configures the IcingaWeb2 Director Module.

Mandatory Role Variables

Variable

Description

icingaweb2_module_director__api_user_login

The account for accessing the Icinga2 API.

icingaweb2_module_director__database_login

The user account for accessing the Director SQL database. Currently, only MySQL is supported.

icingaweb2_module_director__enrolment_user_login

A IcingaWeb2 account with the module/director,director/api,director/hosts permissions, allowing it to enrol new hosts in the Icinga Director. Note that the username has to be enrolment-user for the account to have the correct permissions.

icingaweb2_module_director__version

The module version to install. Possible options from either:

Have a look at 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__version: 'v1.8.1.2021090901'

Optional Role Variables

Variable

Description

Default Value

icingaweb2_module_director__api_endpoint

The endpoint name for accessing the Icinga2 API.

'{{ icinga2_master__cn }}'

icingaweb2_module_director__api_host

The host for accessing the Icinga2 API.

'localhost'

icingaweb2_module_director__api_port

The port for accessing the Icinga2 API.

5665

icingaweb2_module_director__database_host

The host of the SQL database server.

'localhost'

icingaweb2_module_director__database_name

The name of the Director SQL database.

'icinga_director'

icingaweb2_module_director__force_kickstart

Force run the kickstart. Sometimes the check if it is required is flawed.

false

icingaweb2_module_director__monitoring_plugins_version

Which version of the monitoring plugins should be used for generating the Director baskets? Possible options:

  • latest: The latest stable release. See the Releases.
  • main: The development version. Use with care.
  • A specific release, for example 2022030201. See the Releases.

'{{ lfops__monitoring_plugins_version | default("latest") }}'

icingaweb2_module_director__service_enabled

Enables or disables the director service, analogous to systemctl enable/disable --now.

true

icingaweb2_module_director__skip_basket_import

Bool. Should the Linuxfabrik Monitoring Plugins Basket be generated and imported or not?

false

icingaweb2_module_director__url

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 'https://codeload.github.com/Icinga/icingaweb2-module-director/tar.gz/refs/tags/{{ icingaweb2_module_director__version }}'

https://github.com/Linuxfabrik/icingaweb2-module-director/archive/{{ icingaweb2_module_director__version }}.tar.gz

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__monitoring_plugins_version: 'latest'
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'

License

The Unlicense

Author Information

Linuxfabrik GmbH, Zurich