From 3a90b568a1ba6baeac991736f51355227c609c07 Mon Sep 17 00:00:00 2001 From: Guillaume Thouvenin Date: Thu, 20 Oct 2016 15:03:56 +0200 Subject: [PATCH] Add the parameter to configure path for data and logs --- elasticsearch/files/elasticsearch.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/elasticsearch/files/elasticsearch.yml b/elasticsearch/files/elasticsearch.yml index 90e9165..8268098 100644 --- a/elasticsearch/files/elasticsearch.yml +++ b/elasticsearch/files/elasticsearch.yml @@ -158,6 +158,9 @@ index.number_of_replicas: {{ server.get('index', {}).get('replicas', 1) }} # Path to directory where to store index data allocated for this node. # # path.data: /path/to/data +{%- if server.get('path', {}).data is defined %} +path.data = {{ server.path.data }} +{%- endif %} # # Can optionally include more than one location, causing data to be striped across # the locations (a la RAID 0) on a file level, favouring locations with most free @@ -172,6 +175,9 @@ index.number_of_replicas: {{ server.get('index', {}).get('replicas', 1) }} # Path to log files: # # path.logs: /path/to/logs +{%- if server.get('path', {}).logs is defined %} +path.logs = {{ server.path.logs }} +{%- endif %} # Path to where plugins are installed: # -- 2.32.7