Code Review
/
salt-formulas
/
elasticsearch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge pull request #27 from thouveng/fix-grafana-template
[salt-formulas/elasticsearch.git]
/
elasticsearch
/
files
/
elasticsearch.yml
diff --git
a/elasticsearch/files/elasticsearch.yml
b/elasticsearch/files/elasticsearch.yml
index 4d212610dcc4c656779497e5fabb688326676623..5c4bc3ed92c635f56e146811d7d1025ede5dbf15 100644
(file)
--- a/
elasticsearch/files/elasticsearch.yml
+++ b/
elasticsearch/files/elasticsearch.yml
@@
-182,6
+182,13
@@
path.logs = {{ server.path.logs }}
# Path to where plugins are installed:
#
# path.plugins: /path/to/plugins
# 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 ###################################
#################################### Plugin ###################################
@@
-423,3
+430,7
@@
discovery.zen.ping.unicast.hosts: [{% for member in server.cluster.members %}"{{
#monitor.jvm.gc.old.warn: 10s
#monitor.jvm.gc.old.info: 5s
#monitor.jvm.gc.old.debug: 2s
#monitor.jvm.gc.old.warn: 10s
#monitor.jvm.gc.old.info: 5s
#monitor.jvm.gc.old.debug: 2s
+
+{%- if server.script is mapping %}
+script: {{ server.script|yaml }}
+{%- endif %}