X-Git-Url: https://gerrit.mcp.mirantis.com/gitweb?p=salt-formulas%2Felasticsearch.git;a=blobdiff_plain;f=elasticsearch%2Ffiles%2Felasticsearch.yml;h=4d212610dcc4c656779497e5fabb688326676623;hp=90e91651aeffd613ec4d625e1c5cc7252d029427;hb=ee056578f7a07e1e6f5c9820cf73186332528688;hpb=4b6b10787e923881a3cdb7f5def52e1dbf08e2d5 diff --git a/elasticsearch/files/elasticsearch.yml b/elasticsearch/files/elasticsearch.yml index 90e9165..4d21261 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: # @@ -247,6 +253,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