Make custom kibana configuration files possible

Change-Id: Iedfad564f834504fa1f4bfd935cd735d1d9ee65f
This commit is contained in:
Christian Berendt 2018-01-11 14:54:32 +01:00
parent e6c5be4b50
commit c96633d454
2 changed files with 14 additions and 6 deletions

View File

@ -26,17 +26,22 @@
notify:
- Restart kibana container
- name: Copying over Kibana configuration file
- name: Copying over kibana configuration file
vars:
kibana: "{{ kibana_services.kibana }}"
template:
src: "{{ item.key }}.yml.j2"
dest: "{{ node_config_directory }}/{{ item.key }}/{{ item.key }}.yml"
src: "kibana.yml.j2"
dest: "{{ node_config_directory }}/kibana/kibana.yml"
mode: "0660"
become: true
register: kibana_confs
with_first_found:
- "{{ node_custom_config }}/kibana/{{ inventory_hostname }}/kibana.yml"
- "{{ node_custom_config }}/kibana/kibana.yml"
- "kibana.yml.j2"
when:
- inventory_hostname in groups[item.value.group]
- item.value.enabled | bool
with_dict: "{{ kibana_services }}"
- inventory_hostname in groups[kibana.group]
- kibana.enabled | bool
notify:
- Restart kibana container

View File

@ -0,0 +1,3 @@
---
features:
- Adds ability to provide a custom kibana config.