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

24 lines
654 B
Text
Raw Normal View History

2015-11-25 15:28:09 +00:00
{{ es_config | to_nice_yaml }}
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):
2015-11-24 17:32:36 +00:00
path.conf: {{ instance_config_directory }}
2015-11-25 15:28:09 +00:00
path.data: {{ data_dir }}
2015-11-25 15:28:09 +00:00
path.work: {{ work_dir }}
2015-11-25 17:13:45 +00:00
path.logs: {{ log_dir }}
{% if es_scripts and es_config['path.scripts'] is not defined %}
path.scripts: {{ es_conf_dir }}/{{es_instance_name}}/scripts
{% endif %}