ansible-role-elasticsearch/templates/elasticsearch.yml.j2

37 lines
875 B
Text
Raw Normal View History

{% if es_config %}
2015-11-25 15:28:09 +00:00
{{ es_config | to_nice_yaml }}
{% endif %}
2015-11-25 15:28:09 +00:00
{% if es_config['cluster.name'] is not defined %}
cluster.name: elasticsearch
{% endif %}
2015-11-25 15:28:09 +00:00
{% 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):
path.conf: {{ conf_dir }}
path.data: {{ data_dirs | array_to_str }}
2016-11-04 16:04:31 +01:00
{% if es_version | version_compare('5.0', '<') %}
2015-11-25 15:28:09 +00:00
path.work: {{ work_dir }}
{% endif %}
2016-11-04 16:04:31 +01:00
path.logs: {{ log_dir }}
2017-01-11 13:16:07 +00:00
{% 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 %}