* Use log4j2.properties instead of logging.yml * Add jvm.options * Use bootstrap.memory_lock instead of bootstrap.mlockall * Get rid of work directory * Executable does not accept `-D` anymore, replace with `-E` and `-p` * Get rid of 5.x default (file)s
25 lines
No EOL
609 B
Django/Jinja
25 lines
No EOL
609 B
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):
|
|
path.conf: {{ conf_dir }}
|
|
|
|
path.data: {{ data_dirs | array_to_str }}
|
|
|
|
{% if es_version | version_compare('2.0', '<=') %}
|
|
path.work: {{ work_dir }}
|
|
{% endif %}
|
|
|
|
path.logs: {{ log_dir }} |