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:
- 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.