Logging configs for 5.0 only
This commit is contained in:
parent
cde17346d5
commit
86bc009b60
3 changed files with 8 additions and 7 deletions
|
|
@ -48,21 +48,14 @@
|
||||||
- restart elasticsearch
|
- restart elasticsearch
|
||||||
|
|
||||||
#Copy the logging.yml
|
#Copy the logging.yml
|
||||||
- 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('5.0', '<')
|
|
||||||
|
|
||||||
- name: Copy log4j2.properties File for Instance
|
- 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
|
template: src=log4j2.properties.j2 dest={{conf_dir}}/log4j2.properties owner={{ es_user }} group={{ es_group }} mode=0644 force=yes
|
||||||
notify: restart elasticsearch
|
notify: restart elasticsearch
|
||||||
when: es_version | version_compare('5.0', '>=')
|
|
||||||
|
|
||||||
# Copy the JVM Options (5.x only)
|
|
||||||
- name: Copy jvm.options File for Instance
|
- 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
|
template: src=jvm.options.j2 dest={{conf_dir}}/jvm.options owner={{ es_user }} group={{ es_group }} mode=0644 force=yes
|
||||||
notify: restart elasticsearch
|
notify: restart elasticsearch
|
||||||
when: es_version | version_compare('5.0', '>=')
|
|
||||||
|
|
||||||
#Clean up un-wanted package scripts to avoid confusion
|
#Clean up un-wanted package scripts to avoid confusion
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,9 @@
|
||||||
- set_fact: conf_dir={{ es_conf_dir }}/{{es_instance_name}}
|
- set_fact: conf_dir={{ es_conf_dir }}/{{es_instance_name}}
|
||||||
- set_fact: m_lock_enabled={{ (es_config['bootstrap.mlockall'] is defined and es_config['bootstrap.mlockall'] == True) or (es_config['bootstrap.memory_lock'] is defined and es_config['bootstrap.memory_lock'] == True) }}
|
- set_fact: m_lock_enabled={{ (es_config['bootstrap.mlockall'] is defined and es_config['bootstrap.mlockall'] == True) or (es_config['bootstrap.memory_lock'] is defined and es_config['bootstrap.memory_lock'] == True) }}
|
||||||
|
|
||||||
|
#TODO - if transport.host is not local maybe error on boostrap checks
|
||||||
|
|
||||||
|
|
||||||
#Use systemd for the following distributions:
|
#Use systemd for the following distributions:
|
||||||
#Ubuntu 15 and up
|
#Ubuntu 15 and up
|
||||||
#Debian 8 and up
|
#Debian 8 and up
|
||||||
|
|
|
||||||
|
|
@ -17,21 +17,26 @@
|
||||||
- include: elasticsearch.yml
|
- include: elasticsearch.yml
|
||||||
tags:
|
tags:
|
||||||
- install
|
- install
|
||||||
|
|
||||||
- include: elasticsearch-config.yml
|
- include: elasticsearch-config.yml
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
|
|
||||||
- include: elasticsearch-scripts.yml
|
- include: elasticsearch-scripts.yml
|
||||||
when: es_scripts
|
when: es_scripts
|
||||||
tags:
|
tags:
|
||||||
- scripts
|
- scripts
|
||||||
|
|
||||||
- include: elasticsearch-plugins.yml
|
- include: elasticsearch-plugins.yml
|
||||||
when: es_plugins is defined or es_plugins_reinstall
|
when: es_plugins is defined or es_plugins_reinstall
|
||||||
tags:
|
tags:
|
||||||
- plugins
|
- plugins
|
||||||
|
|
||||||
#We always execute xpack as we may need to remove features
|
#We always execute xpack as we may need to remove features
|
||||||
- include: xpack/elasticsearch-xpack.yml
|
- include: xpack/elasticsearch-xpack.yml
|
||||||
tags:
|
tags:
|
||||||
- xpack
|
- xpack
|
||||||
|
|
||||||
- include: elasticsearch-templates.yml
|
- include: elasticsearch-templates.yml
|
||||||
when: es_templates
|
when: es_templates
|
||||||
tags:
|
tags:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue