diff --git a/defaults/main.yml b/defaults/main.yml index fb31044..62dec45 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -36,3 +36,5 @@ pid_dir: '' log_dir: '' conf_dir: '' data_dirs: '' +# JVM custom parameters +es_jvm_custom_parameters: '' diff --git a/templates/jvm.options.j2 b/templates/jvm.options.j2 index 8d34be6..0e70a75 100644 --- a/templates/jvm.options.j2 +++ b/templates/jvm.options.j2 @@ -106,3 +106,8 @@ # WARNING: This option will be removed in Elasticsearch 6.0.0 and is provided # only for migration purposes. #-Delasticsearch.json.allow_unquoted_field_names=true +{% if es_jvm_custom_parameters !='' %} +{% for item in es_jvm_custom_parameters %} +{{ item }} +{% endfor %} +{% endif %}