mirror of
https://github.com/aljazceru/ansible-elasticsearch.git
synced 2025-12-17 17:14:20 +01:00
manage ES_JAVA_OPTS in template
This commit is contained in:
18
README.md
18
README.md
@@ -216,18 +216,20 @@ Following variables affect the versions installed:
|
|||||||
* ```es_version``` (e.g. "1.5.2").
|
* ```es_version``` (e.g. "1.5.2").
|
||||||
* ```es_start_service``` (true (default) or false)
|
* ```es_start_service``` (true (default) or false)
|
||||||
* ```es_plugins_reinstall``` (true or false (default) )
|
* ```es_plugins_reinstall``` (true or false (default) )
|
||||||
* ```es_plugins``` (an array of plugin definitions e.g.:
|
* ```es_plugins``` an array of plugin definitions e.g.:
|
||||||
* ```es_allow_downgrades``` For development purposes only. (true or false (default) )
|
```yml
|
||||||
* ```es_java_install``` If set to false, Java will not be installed. (true (default) or false)
|
|
||||||
* ```update_java``` Updates Java to the latest version. (true or false (default))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
```
|
|
||||||
es_plugins:
|
es_plugins:
|
||||||
- plugin: elasticsearch-cloud-aws
|
- plugin: elasticsearch-cloud-aws
|
||||||
version: 2.5.0
|
version: 2.5.0
|
||||||
```
|
```
|
||||||
|
* ```es_allow_downgrades``` For development purposes only. (true or false (default) )
|
||||||
|
* ```es_java_install``` If set to false, Java will not be installed. (true (default) or false)
|
||||||
|
* ```update_java``` Updates Java to the latest version. (true or false (default))
|
||||||
|
* ```es_java_opts``` an array of java options. E.g.:
|
||||||
|
```yml
|
||||||
|
es_java_opts:
|
||||||
|
- "-Djava.io.tmpdir=/data/tmp/elasticsearch"
|
||||||
|
```
|
||||||
|
|
||||||
Earlier examples illustrate the installation of plugins for 2.x. The correct use of this parameter varies depending on the version of Elasticsearch being installed:
|
Earlier examples illustrate the installation of plugins for 2.x. The correct use of this parameter varies depending on the version of Elasticsearch being installed:
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,13 @@ ES_HEAP_SIZE={{es_heap_size}}
|
|||||||
#ES_DIRECT_SIZE=
|
#ES_DIRECT_SIZE=
|
||||||
|
|
||||||
# Additional Java OPTS
|
# Additional Java OPTS
|
||||||
|
{% if es_java_opts is defined and es_java_opts %}
|
||||||
|
{% for java_opt in es_java_opts %}
|
||||||
|
ES_JAVA_OPTS="{{java_opt}}"
|
||||||
|
{% endfor %}
|
||||||
|
{% else %}
|
||||||
#ES_JAVA_OPTS=
|
#ES_JAVA_OPTS=
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
# Configure restart on package upgrade (true, every other setting will lead to not restarting)
|
# Configure restart on package upgrade (true, every other setting will lead to not restarting)
|
||||||
#ES_RESTART_ON_UPGRADE=true
|
#ES_RESTART_ON_UPGRADE=true
|
||||||
|
|||||||
Reference in New Issue
Block a user