From: Guillaume Thouvenin Date: Thu, 20 Oct 2016 13:03:56 +0000 (+0200) Subject: Add the parameter to configure path for data and logs X-Git-Tag: 2016.12~5^2~15^2~1 X-Git-Url: https://gerrit.mcp.mirantis.com/gitweb?p=salt-formulas%2Felasticsearch.git;a=commitdiff_plain;h=3a90b568a1ba6baeac991736f51355227c609c07 Add the parameter to configure path for data and logs --- 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: #