Ansible Role icinga_kubernetes
Icinga for Kubernetes consists of multiple components. This role only installs Icinga for Kubernetes. Generally, the Icinga for Kubernetes Web is also required, use the linuxfabrik.lfops.icinga_kubernetes_web role for that.
This role is tested with the following Icinga for Kubernetes versions:
0.3.0
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 user account for accessing the Icinga for Kubernetes SQL database. Currently, only MySQL is supported.  | 
Example:
# mandatory
icinga_kubernetes__database_login:
  username: 'icinga_kubernetes'
  password: 'linuxfabrik'
Optional Role Variables
Variable  | 
Description  | 
Default Value  | 
|---|---|---|
  | 
A list of kubernetes cluster configs. Subkeys: 
  | 
|
  | 
The host on which the Icinga for Kubernetes SQL database is reachable.  | 
  | 
  | 
The Host-part of the SQL database user.  | 
  | 
  | 
The name of the Icinga for Kubernetes SQL database.  | 
  | 
  | 
Enables or disables the Icinga for Kubernetes service, analogous to   | 
  | 
Example:
# optional
icinga_kubernetes__clusters__host_var:
  - name: 'default'
    state: 'absent'
  - name: 'other_cluster'
    kubeconfig_path: '/etc/icinga-kubernetes/kubeconfig-other_cluster'
    state: 'present'
icinga_kubernetes__database_host: '127.0.0.1'
icinga_kubernetes__database_login_host: 'localhost'
icinga_kubernetes__database_name: 'icinga_kubernetes'
icinga_kubernetes__service_enabled: true