diff --git a/ansible/roles/elasticsearch/tasks/config.yml b/ansible/roles/elasticsearch/tasks/config.yml index 4b73ecfc66..28dde49979 100644 --- a/ansible/roles/elasticsearch/tasks/config.yml +++ b/ansible/roles/elasticsearch/tasks/config.yml @@ -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 diff --git a/releasenotes/notes/add-custom-elasticsearch-conf-6fc34fbc3b471997.yaml b/releasenotes/notes/add-custom-elasticsearch-conf-6fc34fbc3b471997.yaml new file mode 100644 index 0000000000..2cc416c7ac --- /dev/null +++ b/releasenotes/notes/add-custom-elasticsearch-conf-6fc34fbc3b471997.yaml @@ -0,0 +1,3 @@ +--- +features: + - Adds ability to provide a custom elasticsearch config.