Support custom elasticsearch configuration files

Change-Id: Id43627c6b6d305d0efbdd27ac5a2efbd5bee9107
This commit is contained in:
Christian Berendt 2020-06-02 16:58:46 +02:00 committed by Radosław Piliszek
parent 05a2421b32
commit da64a36bc2
2 changed files with 9 additions and 2 deletions

View File

@ -30,8 +30,12 @@
- Restart {{ item.key }} container
- name: Copying over elasticsearch service config files
template:
src: "{{ item.key }}.yml.j2"
merge_yaml:
sources:
- "{{ role_path }}/templates/{{ item.key }}.yml.j2"
- "{{ node_custom_config }}/elasticsearch.yml"
- "{{ node_custom_config }}/elasticsearch/{{ item.key }}.yml"
- "{{ node_custom_config }}/elasticsearch/{{ inventory_hostname }}/{{ item.key }}.yml"
dest: "{{ node_config_directory }}/{{ item.key }}/{{ item.key }}.yml"
mode: "0660"
become: true

View File

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