X-Git-Url: https://gerrit.mcp.mirantis.com/gitweb?p=salt-formulas%2Felasticsearch.git;a=blobdiff_plain;f=elasticsearch%2Ffiles%2Felasticsearch.yml;h=5c4bc3ed92c635f56e146811d7d1025ede5dbf15;hp=82680988554fa0f306854b86b36184a84b9374d1;hb=4025f023ec0c9117028825ba639be78bda8961b2;hpb=3a90b568a1ba6baeac991736f51355227c609c07;ds=inline diff --git a/elasticsearch/files/elasticsearch.yml b/elasticsearch/files/elasticsearch.yml index 8268098..5c4bc3e 100644 --- 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 +# +{%- if server.snapshot is defined %} +path.repo: + {%- for repo_name, repo in server.snapshot.iteritems() %} + - {{ repo.path }} + {%- endfor %} +{%- endif %} #################################### Plugin ################################### @@ -253,6 +260,16 @@ http.port: {{ server.bind.port }} # # http.max_content_length: 100mb +# Enable or disable cross-origin resource sharing +{%- if server.get('cors', {}).enabled is defined %} +http.cors.enabled: {{ server.cors.enabled|lower }} +{%- endif %} + +# Which origins to allow. +{%- if server.get('cors', {}).allow_origin is defined %} +http.cors.allow-origin: {{ server.cors.allow_origin }} +{%- endif %} + # Disable HTTP completely: # # http.enabled: false @@ -413,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 + +{%- if server.script is mapping %} +script: {{ server.script|yaml }} +{%- endif %}