This Ansible role has the following features:
- Install kibana
- Binds kibana to preinstalled elasticsearch host
- Version of the ansible for installation: 2.9
- Supported OS:
- EL
- 7
- 8
- Ubuntu
- 16.04
- 18.04
- Debian
- 9
- 10
- EL
- defaults
elastic_branch
Used to select main kibana version to be installed (6.x or higher for current stable versions). By default this variable is set to6
. So,6.x
version is installed by default. You can override this by setting this variable in playbook or inventory.kibana_version
Sets specific kibana version. If you need the exact version to be installed - set this variable to the desired value.6.2.4
for example. By default this variable is set to6.x
which means last stable version to be installed.es_use_oss_version
Variable to use an alternative package,kibana-oss
, which contains only features that are available under the Apache 2.0 license.X-Pack
options are not included in package. Default value isFalse
. Set toTrue
if you need to install only OSS package version withoutX-Pack
features.kibana_host
Specifies the address to which the Kibana server will bind. IP addresses and host names are both valid values. The default is 'localhost', which usually means remote machines will not be able to connect. To allow connections from remote users, set this parameter to a non-loopback address.kibana_port
Specifies the port to use for Kibana. Default value is5601
.elasticsearch_host
andelasticsearch_port
Variables are necessary for Kibana to be able to communicate to running Elasticsearch server. Please set proper values of these variables according to your infrastructure. Default values arelocalhost
and9200
.kibana_elasticsearch_url
Address using by Kibana to connect toelasticsearch
service. In simple cases it's set automatically usingelasticsearch_host
andelasticsearch_port
values. If it's not enough in more complex environment, you can redefinekibana_elasticsearch_url
to set the correct url value directly.kibana_conf_dir
Path to kibana config directory. Default value is/etc/kibana
.kibana_pid_dir
Path to the directory containing pid for running kibana service. Default value is/var/run/kibana
.kibana_log_dir
Kibana log storage directory. Default value is/var/log/kibana
.kibana_data_dir
The location of the data files written to disk by Kibana and its plugins. Default value is/var/lib/kibana
.kibana_config
All Kibana configuration parameters are supported. This is achieved using a configuration map parameterkibana_config
which is serialized into thekibana.yml
file.kibana_user
andkibana_group
Credentials used to run Kibana service. Default values set by package scenarios tokibana
. Change only if necessary.elastic_gpg_key
GPG key for repositories. Default value ishttps://artifacts.elastic.co/GPG-KEY-elasticsearch
.es_apt_url
Address of APT repository with Elastic stack packages. Default is external address provided by Elastic:deb https://artifacts.elastic.co/packages/{{ es_repo_name }}/apt stable main
. Redefine in case of alternate repository is required.es_yum_url
Address of YUM repository with Elastic stack packages. Default is external address provided by Elastic:https://artifacts.elastic.co/packages/{{ es_repo_name }}/yum
. Redefine in case of alternate repository is required.es_repo_file
Local file name of Elastic stack repository configuration. Default iselastic-{{ es_major_version }}
ansible-galaxy install lean_delivery.kibana
- name: Install kibana
hosts: kibana-host
vars:
elastic_branch: 7
kibana_host: localhost
roles:
- role: lean_delivery.kibana
- name: Install kibana
hosts: kibana-host
vars:
elastic_branch: 6
kibana_host: localhost
kibana_config:
xpack.security.enabled: False
roles:
- role: lean_delivery.kibana
Apache2
authors:
- Lean Delivery [email protected]