The collection provides several roles to install and configure Icinga 2.
-
icinga2_purge_features: boolean
- Decides whether the unmanaged features should be purged or not. Default: true
-
icinga2_constants: dict
- Define constants in constants.conf, for defaults check the vars folder.
icinga2_constants:
NodeName: satellite.localdomain
ZoneName: zone-satellite-d1
If the local conf.d directory shouldn't be recursively included then the
var icinga2_confd
should be set to false
.
Otherwise you can use a directory name to set the include to a different folder
than conf.d. The folder needs to exist below /etc/icinga2. If it should be created by the role use the variable icinga2_config_directories
in addition.
icinga2_confd: true/false/<directory_name>
The Icinga 2 role will automatically detect via Ansible facts if SELinux is enabled on the system. If this is the case the package icinga2-selinux will be automatically installed.
If the package should be installed, even if SELinux is not enabled or somehow wrongly disabled in Ansible use the following variable.
ansible_selinux:
status: enabled
The role primarily delegates the ticket creation to the Icinga ca host. If the host is not listed with the same name in Ansible, you can set the name of the host in Ansible with icinga2_delegate_host.
icinga2_delegate_host: icinga-master