Ansible Role icingaweb2_module_vspheredb¶
This role installs and configures the IcingaWeb2 vSphereDB Module.
This role is tested with the following IcingaWeb2 vSphereDB Module versions:
1.6.0
1.7.1
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.
If you use the Setup Icinga2 Master Playbook and set setup_icinga2_master__skip_icingaweb2_module_vspheredb: false, this is automatically done for you.
Mandatory Role Variables¶
icingaweb2_module_vspheredb__database_login
The user account for accessing the vSphereDB SQL database. Currently, only MySQL is supported.
Type: Dictionary.
icingaweb2_module_vspheredb__version
The Module version to install. Can be found here.
Type: String.
Example:
# mandatory
icingaweb2_module_vspheredb__database_login:
username: 'icinga_vspheredb_user'
password: 'linuxfabrik'
icingaweb2_module_vspheredb__version: '1.6.0'
Optional Role Variables¶
icingaweb2_module_vspheredb__database_host
The host of the SQL database server.
Type: String.
Default:
'localhost'
icingaweb2_module_vspheredb__database_name
The name of the vspheredb SQL database.
Type: String.
Default:
'icinga_vspheredb'
icingaweb2_module_vspheredb__service_enabled
Enables or disables the vSphereDB service, analogous to
systemctl enable/disable --now.Type: Bool.
Default:
'{{ icinga2_master__node_role | d("primary") == "primary" }}'
Example:
# optional
icingaweb2_module_vspheredb__database_host: 'localhost'
icingaweb2_module_vspheredb__database_name: 'icinga_vspheredb'
icingaweb2_module_vspheredb__service_enabled: false