Introduce es_java_home variable to allow setting JAVA_HOME env var in defaults file.

This commit is contained in:
Tim Lieberman 2020-03-18 16:34:52 -07:00
parent c115a70543
commit a7e7618050
2 changed files with 5 additions and 0 deletions

View file

@ -47,6 +47,7 @@ es_api_sleep: 15
es_debian_startup_timeout: 10 es_debian_startup_timeout: 10
# JVM custom parameters # JVM custom parameters
es_java_home: ''
es_jvm_custom_parameters: '' es_jvm_custom_parameters: ''
# SSL/TLS parameters # SSL/TLS parameters

View file

@ -6,7 +6,11 @@
ES_HOME={{es_home}} ES_HOME={{es_home}}
# Elasticsearch Java path # Elasticsearch Java path
{% if es_java_home | length > 0 %}
JAVA_HOME={{ es_java_home }}
{% else %}
#JAVA_HOME= #JAVA_HOME=
{% endif %}
# Elasticsearch configuration directory # Elasticsearch configuration directory
ES_PATH_CONF={{ es_conf_dir }} ES_PATH_CONF={{ es_conf_dir }}