ansible-role-elasticsearch/templates/elasticsearch.yml.j2
2015-11-25 17:13:45 +00:00

24 lines
No EOL
654 B
Django/Jinja

{{ es_config | to_nice_yaml }}
{% 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):
path.conf: {{ instance_config_directory }}
path.data: {{ data_dir }}
path.work: {{ work_dir }}
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 %}