Skip to content

Commit 59b9aef

Browse files
authored
Add "extra config" to kibana.yml (#270)
fixes #208
1 parent a2cc6a1 commit 59b9aef

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

docs/role-kibana.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Role Variables
1313
* *kibana_tls*: Whether to offer `https` for clients or not (default: `false`)
1414
* *kibana_tls_cert*: Path to the certificate Kibana should show to its clients (default: `/etc/kibana/certs/cert.pem`)
1515
* *kibana_tls_key*: Path to the key Kibana should use when communicating with clients (default: `/etc/kibana/certs/key.pem`)
16+
* *kibana_extra_config*: You can add arbitraty configuration options with this option. Just start it with `|-` and indent the following lines. So you can add as many lines and options to `kibana.yml` as you like. (default: none)
1617

1718
* *kibana_security*: Activate TLS and authentication when connecting to Elasticsearch. **Note**: Only works when `elasticstack_full_stack` is enabled. (default: `true`)
1819

molecule/elasticstack_default/converge.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
- system
2424
beats_fields:
2525
- "testbed: molecule"
26+
kibana_extra_config: |-
27+
ops.interval: 5000
2628
tasks:
2729
- name: Enable Elastic installation on RHEL 9
2830
ansible.builtin.set_fact:

roles/kibana/templates/kibana.yml.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,7 @@ server.ssl.enabled: true
3030
server.ssl.certificate: "{{ kibana_tls_cert }}"
3131
server.ssl.key: "{{ kibana_tls_key }}"
3232
{% endif %}
33+
34+
{% if kibana_extra_config is defined %}
35+
{{ kibana_extra_config }}
36+
{% endif %}

0 commit comments

Comments
 (0)