lean_delivery.kibana
kibana role
Summary
This Ansible role has the following features:
- Install kibana
- Binds kibana to preinstalled elasticsearch host
Requirements
- Version of the ansible for installation: 2.9
- Supported OS:
- EL
- 7
- 8
- Ubuntu
- 16.04
- 18.04
- Debian
- 9
- 10
- EL
Role Variables
- 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.xversion is installed by default. You can override this by setting this variable in playbook or inventory.kibana_versionSets specific kibana version. If you need the exact version to be installed - set this variable to the desired value.6.2.4for example. By default this variable is set to6.xwhich means last stable version to be installed.es_use_oss_versionVariable to use an alternative package,kibana-oss, which contains only features that are available under the Apache 2.0 license.X-Packoptions are not included in package. Default value isFalse. Set toTrueif you need to install only OSS package version withoutX-Packfeatures.kibana_hostSpecifies 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_portSpecifies the port to use for Kibana. Default value is5601.elasticsearch_hostandelasticsearch_portVariables 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 arelocalhostand9200.kibana_elasticsearch_urlAddress using by Kibana to connect toelasticsearchservice. In simple cases it's set automatically usingelasticsearch_hostandelasticsearch_portvalues. If it's not enough in more complex environment, you can redefinekibana_elasticsearch_urlto set the correct url value directly.kibana_conf_dirPath to kibana config directory. Default value is/etc/kibana.kibana_pid_dirPath to the directory containing pid for running kibana service. Default value is/var/run/kibana.kibana_log_dirKibana log storage directory. Default value is/var/log/kibana.kibana_data_dirThe location of the data files written to disk by Kibana and its plugins. Default value is/var/lib/kibana.kibana_configAll Kibana configuration parameters are supported. This is achieved using a configuration map parameterkibana_configwhich is serialized into thekibana.ymlfile.kibana_userandkibana_groupCredentials used to run Kibana service. Default values set by package scenarios tokibana. Change only if necessary.elastic_gpg_keyGPG key for repositories. Default value ishttps://artifacts.elastic.co/GPG-KEY-elasticsearch.es_apt_urlAddress 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_urlAddress 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_fileLocal file name of Elastic stack repository configuration. Default iselastic-{{ es_major_version }}
Some examples of the installing current role
ansible-galaxy install lean_delivery.kibana
Example Playbook
Installing kibana 7.x version:
- name: Install kibana
hosts: kibana-host
vars:
elastic_branch: 7
kibana_host: localhost
roles:
- role: lean_delivery.kibana
Installing kibana 6.x version with disabled xpack security feature:
- name: Install kibana
hosts: kibana-host
vars:
elastic_branch: 6
kibana_host: localhost
kibana_config:
xpack.security.enabled: False
roles:
- role: lean_delivery.kibana
License
Apache2
Author Information
authors:
- Lean Delivery team@lean-delivery.com
Install
ansible-galaxy install lean_delivery.kibanaLicense
apache-2.0
Downloads
2k
Owner
Simplify by using!
