Skip to content

Commit

Permalink
Add "extra config" to kibana.yml (#270)
Browse files Browse the repository at this point in the history
fixes #208
  • Loading branch information
widhalmt authored Sep 8, 2023
1 parent a2cc6a1 commit 59b9aef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/role-kibana.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Role Variables
* *kibana_tls*: Whether to offer `https` for clients or not (default: `false`)
* *kibana_tls_cert*: Path to the certificate Kibana should show to its clients (default: `/etc/kibana/certs/cert.pem`)
* *kibana_tls_key*: Path to the key Kibana should use when communicating with clients (default: `/etc/kibana/certs/key.pem`)
* *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)

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

Expand Down
2 changes: 2 additions & 0 deletions molecule/elasticstack_default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
- system
beats_fields:
- "testbed: molecule"
kibana_extra_config: |-
ops.interval: 5000
tasks:
- name: Enable Elastic installation on RHEL 9
ansible.builtin.set_fact:
Expand Down
4 changes: 4 additions & 0 deletions roles/kibana/templates/kibana.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@ server.ssl.enabled: true
server.ssl.certificate: "{{ kibana_tls_cert }}"
server.ssl.key: "{{ kibana_tls_key }}"
{% endif %}

{% if kibana_extra_config is defined %}
{{ kibana_extra_config }}
{% endif %}

0 comments on commit 59b9aef

Please sign in to comment.