Add support for Elasticsearch 5.x
* Use log4j2.properties instead of logging.yml * Add jvm.options * Use bootstrap.memory_lock instead of bootstrap.mlockall * Get rid of work directory * Executable does not accept `-D` anymore, replace with `-E` and `-p` * Get rid of 5.x default (file)s
This commit is contained in:
parent
56837b0627
commit
523270405e
9 changed files with 218 additions and 5 deletions
|
|
@ -48,6 +48,18 @@
|
|||
- name: Copy Logging.yml File for Instance
|
||||
template: src=logging.yml.j2 dest={{conf_dir}}/logging.yml owner={{ es_user }} group={{ es_group }} mode=0644 force=yes
|
||||
notify: restart elasticsearch
|
||||
when: es_version | version_compare('2.0', '<=')
|
||||
|
||||
- name: Copy log4j2.properties File for Instance
|
||||
template: src=log4j2.properties.j2 dest={{conf_dir}}/log4j2.properties owner={{ es_user }} group={{ es_group }} mode=0644 force=yes
|
||||
notify: restart elasticsearch
|
||||
when: es_version | version_compare('2.0', '>')
|
||||
|
||||
# Copy the JVM Options (5.x only)
|
||||
- name: Copy jvm.options File for Instance
|
||||
template: src=jvm.options.j2 dest={{conf_dir}}/jvm.options owner={{ es_user }} group={{ es_group }} mode=0644 force=yes
|
||||
notify: restart elasticsearch
|
||||
when: es_version | version_compare('2.0', '>')
|
||||
|
||||
#Clean up un-wanted package scripts to avoid confusion
|
||||
|
||||
|
|
@ -71,3 +83,8 @@
|
|||
- name: Delete Default Logging File
|
||||
file: dest=/etc/elasticsearch/logging.yml state=absent
|
||||
|
||||
- name: Delete Default Logging File (5.x)
|
||||
file: dest=/etc/elasticsearch/log4j2.properties state=absent
|
||||
|
||||
- name: Delete Default JVM Options File (5.x)
|
||||
file: dest=/etc/elasticsearch/jvm.options state=absent
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue