Merge "Make custom kibana configuration files possible"

This commit is contained in:
Zuul 2018-10-24 09:50:41 +00:00 committed by Gerrit Code Review
commit 64d8dcdebd
2 changed files with 14 additions and 6 deletions

View File

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

View File

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