Role Detail

javiergayala.kibana

Kibana installation for RedHat Family systems.
Downloads
5
Type Ansible
Minimum Ansible Version 2.0
Installation $ ansible-galaxy install javiergayala.kibana
Tags
elk
kibana
logs
metrics
monitoring
system
web
Last Commit
Last Imported
Version History
Version Release Date
v1.1.0
v1.0.0
OS Platforms
Platform Version
EL 7
Last 10 Imports
Completed Status
SUCCESS
SUCCESS
SUCCESS
SUCCESS

Ansible Role: Kibana

Build Status

Installs Kibana on RedHat/CentOS.

This role installs and configures the latest version of Kibana (6.x) from the official Elastic.co Repo.

Requirements

None.

Role Variables

Default values (see defaults/main.yml):

es_major_version: "6.x"

The version of Kibana should always match the verion of Elasticsearch in your ELK stack. This represents the major version of Elasticsearch.

es_use_repository: undefined

This value is not defined anywhere in the role. I have documented it here because it is a value usually defined in the elastic.elasticsearch role by Elastic.co. If you are installing this Kibana role alongside the elastic.elasticsearch role, then that role will typically install the repository for you. Allowing this Kibana role to also install the repository will slightly alter the repo file which leads to the role no longer producing an idempotent result. However, if you tell the elastic.elasticsearch role NOT to install the repository, then this Kibana role will install the repository in order to access the software.

es_version: "6.2.3"

The full version number of Elasticsearch/Kibana.

kibana_enabled: "yes"

This defines whether the Kibana service should be enabled at boot.

kibana_params: {}

The kibana_params variable is a dictionary that can contain custom settings that you wish to modify within the Kibana configuration file. The key name of dictionary entry should match the setting you wish to see in the configuration file, and the value of the dictionary entry should match the parameter value you wish to set.

(e.g. kibana_params: { server.name: "{{ ansible_fqdn }}" }).

kibana_repo_key: 'https://artifacts.elastic.co/GPG-KEY-elasticsearch'

The URL to the PGP key used for the Elastic.co respository.

kibana_run_state: started

This defines whether the Kibana service should be started.

RedHat specific values (see vars/kibana-RedHat.yml)

kibana_home: /usr/share/kibana

The path where Kibana is installed.

kibana_bin_dir: "{{ kibana_home }}/bin"

The path where the Kibana binary is installed.

kibana_config_dir: "/etc/kibana"

The path to the Kibana configuration directory.

kibana_config_file: "{{ kibana_config_dir }}/kibana.yml"

The full path to the Kibana configuration file.

kibana_data_dir: /var/lib/kibana

The path where Kibana data is stored.

kibana_optimize_dir: "{{ kibana_home }}/optimize"

The path to the Kibana optimize directory where it stores transpiled source code.

kibana_plugins_dir: "{{ kibana_home }}/plugins"

The path to the Kibana plugins directory.

Dependencies

None.

Example Playbook

- hosts: servers
  roles:
     - role: javiergayala.kibana
       kibana_params:
         'server.name': "{{ ansible_fqdn }}"

License

BSD

Author Information

This role was created in 2018 by Javier Ayala.

None