This cookbook installs and configures Kibana version 5.2.0 and above. This cookbook may work with Kibana 6.x.x, but no guarantee.
Tested only on CentOS 7 and Ubuntu 16.04. Should work on any modern Linux OS with systemd.
default.rb
- Runs kibana5_install
and kibana5_configure
with default options.This resource installs Kibana 5 binaries.
Attribute | Description | Type | Default |
---|---|---|---|
name |
Simply name. Currently not used. | String | |
version |
Version of Kibana. 5.2.0 and above are supported. | String | 5.6.16 |
install_method |
Installation method. Currently only release is supported. This means installation from official binaries provided by Elastic. |
String | release |
base_dir |
Base directory for Kibana binaries. | String | /opt/kibana |
svc_user |
Kibana daemon user. | String | kibana |
svc_group |
Kibana daemon group. | String | kibana |
This resource configures Kibana daemon and main configuration file.
Attribute | Description | Type | Default |
---|---|---|---|
svc_name |
Name of the daemon | String | |
svc_user |
Kibana daemon user. | String | kibana |
svc_group |
Kibana daemon group. | String | kibana |
configuration |
Hash with configuration file values. See examples. | Hash | |
template_cookbook |
Override template from other cookbook. | String | kibana5 |
examples of configuration hashes:
{
'server.port' => 5601,
'server.host' => 'localhost',
'elasticsearch.url' => 'http://localhost:9200',
}
{
'server.port' => 5601,
'server.host' => 'localhost',
'server.name' => 'My-Kibana',
'elasticsearch.url' => 'http://localhost:9200',
'logging.dest' => '/var/log/kibana.log',
'logging.verbose' => 'true',
'elasticsearch.requestHeadersWhitelist' => '[ authorization ]',
}
It is recommended to use resources directly.
You may see examples in fixture cookbook: test/fixtures/kibana5-test/recipes/default.rb test/fixtures/kibana5-test/recipes/nginx.rb