mirror of
https://github.com/valitydev/salt-common.git
synced 2024-11-06 10:25:23 +00:00
Merge pull request #180 from rbkmoney/add_es_java_opts
es java options added
This commit is contained in:
commit
7d247d1ac9
@ -10,6 +10,7 @@ class NoAliasDumper(yaml.SafeDumper):
|
|||||||
conf_path = '/etc/elasticsearch/'
|
conf_path = '/etc/elasticsearch/'
|
||||||
log_path = '/var/log/elasticsearch/'
|
log_path = '/var/log/elasticsearch/'
|
||||||
data_path = '/var/lib/elasticsearch/'
|
data_path = '/var/lib/elasticsearch/'
|
||||||
|
es_java_opts = '-Des.transport.cname_in_publish_address=true'
|
||||||
|
|
||||||
packages_es = pillar('gentoo:portage:packages:app-misc/elasticsearch', {})
|
packages_es = pillar('gentoo:portage:packages:app-misc/elasticsearch', {})
|
||||||
es_version = packages_es.get('version', '=7.0.0')
|
es_version = packages_es.get('version', '=7.0.0')
|
||||||
@ -149,7 +150,7 @@ File.managed(
|
|||||||
template='jinja', source="salt://elasticsearch/files/elasticsearch.confd.tpl",
|
template='jinja', source="salt://elasticsearch/files/elasticsearch.confd.tpl",
|
||||||
defaults={
|
defaults={
|
||||||
'conf_dir': conf_path, 'log_dir': log_path, 'data_dir': data_dir,
|
'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})
|
'max_map_count': max_map_count, 'max_threads': max_threads, 'es_startup_sleep_time': 10})
|
||||||
|
|
||||||
if tls:
|
if tls:
|
||||||
|
Loading…
Reference in New Issue
Block a user