elasticsearch.yml: xpack settings added only if es_enable_xpack
the default values are: - es_enable_xpack: false - es_xpack_features: ["alerting","monitoring","graph","ml","security"] With the default values, XPACK is not installed But the generated elasticsearch.yml contains the XPACK Settings. Elasticsearch application refuses to start with these unknown settings
This commit is contained in:
parent
d7a5af8c33
commit
e4cf9aef8c
1 changed files with 2 additions and 0 deletions
|
|
@ -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 %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue