From 60abc5b9fb637479a6bc40d46b1fb9ca17d8d0b6 Mon Sep 17 00:00:00 2001 From: Ivan Panteleev Date: Tue, 11 May 2021 16:03:58 +0300 Subject: [PATCH] es java options added --- sls/elasticsearch/config.sls | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sls/elasticsearch/config.sls b/sls/elasticsearch/config.sls index d7390c6..51d969a 100644 --- a/sls/elasticsearch/config.sls +++ b/sls/elasticsearch/config.sls @@ -10,6 +10,7 @@ class NoAliasDumper(yaml.SafeDumper): conf_path = '/etc/elasticsearch/' log_path = '/var/log/elasticsearch/' data_path = '/var/lib/elasticsearch/' +es_java_opts = pillar('elastic:es_java_opts', '') packages_es = pillar('gentoo:portage:packages:app-misc/elasticsearch', {}) es_version = packages_es.get('version', '=7.0.0') @@ -149,7 +150,7 @@ File.managed( template='jinja', source="salt://elasticsearch/files/elasticsearch.confd.tpl", defaults={ 'conf_dir': conf_path, 'log_dir': log_path, 'data_dir': data_dir, - 'es_java_opts': '', 'l_nofile': l_nofile, 'l_memlock': l_memlock, + 'es_java_opts': es_java_opts , 'l_nofile': l_nofile, 'l_memlock': l_memlock, 'max_map_count': max_map_count, 'max_threads': max_threads, 'es_startup_sleep_time': 10}) if tls: