From df5209c4f7d1d00fbfd0418d1f279523febf5280 Mon Sep 17 00:00:00 2001 From: Filip Pytloun Date: Fri, 23 Sep 2016 11:55:56 +0200 Subject: [PATCH] Add support for setting path.repo option --- README.rst | 11 +++++++++++ elasticsearch/files/elasticsearch.yml | 7 +++++++ 2 files changed, 18 insertions(+) diff --git a/README.rst b/README.rst index 7e9ccce..8c49531 100644 --- a/README.rst +++ b/README.rst @@ -24,6 +24,17 @@ Single-node elasticsearch with clustering disabled: shards: 1 replicas: 0 +Setup shared repository for snapshots: + +.. code-block:: bash + + elasticsearch: + server: + snapshot: + reponame: + path: /var/lib/glusterfs/repo + compress: true + Cluster with manually defined members: .. code-block:: yaml diff --git a/elasticsearch/files/elasticsearch.yml b/elasticsearch/files/elasticsearch.yml index 268b46c..df2cbc7 100644 --- a/elasticsearch/files/elasticsearch.yml +++ b/elasticsearch/files/elasticsearch.yml @@ -172,6 +172,13 @@ index.number_of_replicas: {{ server.get('index', {}).get('replicas', 1) }} # Path to where plugins are installed: # # path.plugins: /path/to/plugins +# +{%- if server.snapshot is defined %} +path.repo: + {%- for repo_name, repo in server.snapshot.iteritems() %} + - {{ repo.path }} + {%- endfor %} +{%- endif %} #################################### Plugin ################################### -- 2.32.7