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
46 lines
1 KiB
Django/Jinja
46 lines
1 KiB
Django/Jinja
|
|
{% if es_config %}
|
|
{{ es_config | to_nice_yaml }}
|
|
{% endif %}
|
|
|
|
{% if es_config['cluster.name'] is not defined %}
|
|
cluster.name: elasticsearch
|
|
{% endif %}
|
|
|
|
{% if es_config['node.name'] is not defined %}
|
|
node.name: {{inventory_hostname}}-{{es_instance_name}}
|
|
{% endif %}
|
|
|
|
#################################### Paths ####################################
|
|
|
|
# Path to directory containing configuration (this file and logging.yml):
|
|
|
|
{% if (es_version | version_compare('6.0.0', '<')) %}
|
|
path.conf: {{ conf_dir }}
|
|
{% endif %}
|
|
|
|
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 %}
|
|
|
|
{% if not "monitoring" in es_xpack_features %}
|
|
xpack.monitoring.enabled: false
|
|
{% endif %}
|
|
|
|
{% if not "alerting" in es_xpack_features %}
|
|
xpack.watcher.enabled: false
|
|
{% endif %}
|
|
|
|
{% if not "ml" in es_xpack_features %}
|
|
xpack.ml.enabled: false
|
|
{% endif %}
|
|
|
|
{% if not "graph" in es_xpack_features %}
|
|
xpack.graph.enabled: false
|
|
{% endif %}
|
|
{% endif %}
|