diff --git a/templates/elasticsearch.yml.j2 b/templates/elasticsearch.yml.j2 index f50c34d3..111f6f46 100644 --- a/templates/elasticsearch.yml.j2 +++ b/templates/elasticsearch.yml.j2 @@ -23,6 +23,7 @@ path.data: {{ data_dirs | array_to_str }} path.logs: {{ log_dir }} +{% if es_enable_xpack %} {% if not "security" in es_xpack_features %} xpack.security.enabled: false {% endif %} @@ -42,3 +43,4 @@ xpack.ml.enabled: false {% if not "graph" in es_xpack_features %} xpack.graph.enabled: false {% endif %} +{% endif %}