Merge remote-tracking branch 'elastic/master'
# Conflicts: # meta/main.yml
This commit is contained in:
parent
8915d5f9a5
commit
d94808d7e2
5 changed files with 16 additions and 22 deletions
|
|
@ -8,7 +8,7 @@ galaxy_info:
|
||||||
company: "Elastic.co"
|
company: "Elastic.co"
|
||||||
license: "license (Apache)"
|
license: "license (Apache)"
|
||||||
# Require 1.6 for apt deb install
|
# Require 1.6 for apt deb install
|
||||||
min_ansible_version: 2.1.2
|
min_ansible_version: 2.1.0
|
||||||
platforms:
|
platforms:
|
||||||
- name: EL
|
- name: EL
|
||||||
versions:
|
versions:
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,10 @@
|
||||||
apt_repository: repo="deb http://packages.elastic.co/elasticsearch/{{ es_major_version }}/debian stable main" state=present
|
apt_repository: repo="deb http://packages.elastic.co/elasticsearch/{{ es_major_version }}/debian stable main" state=present
|
||||||
when: es_use_repository
|
when: es_use_repository
|
||||||
|
|
||||||
|
- name: Debian - include versionlock
|
||||||
|
include: elasticsearch-Debian-version-lock.yml
|
||||||
|
when: es_version_lock
|
||||||
|
|
||||||
- name: Debian - Ensure elasticsearch is installed
|
- name: Debian - Ensure elasticsearch is installed
|
||||||
apt: name=elasticsearch{% if es_version is defined and es_version != "" %}={{ es_version }}{% endif %} state=present force={{force_install}} cache_valid_time=86400
|
apt: name=elasticsearch{% if es_version is defined and es_version != "" %}={{ es_version }}{% endif %} state=present force={{force_install}} cache_valid_time=86400
|
||||||
when: es_use_repository
|
when: es_use_repository
|
||||||
|
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
---
|
|
||||||
# Trigger Debian section
|
|
||||||
- name: Include Debian specific Elasticsearch
|
|
||||||
include: elasticsearch-Debian-version-lock.yml
|
|
||||||
when: ansible_os_family == 'Debian'
|
|
||||||
|
|
||||||
# Trigger Redhat section
|
|
||||||
- name: Include RedHat specific Elasticsearch
|
|
||||||
include: elasticsearch-RedHat-version-lock.yml
|
|
||||||
when: ansible_os_family == 'RedHat'
|
|
||||||
|
|
@ -45,11 +45,11 @@ fi
|
||||||
# The following variables can be overwritten in $DEFAULT
|
# The following variables can be overwritten in $DEFAULT
|
||||||
|
|
||||||
# Run Elasticsearch as this user ID and group ID
|
# Run Elasticsearch as this user ID and group ID
|
||||||
ES_USER=elasticsearch
|
ES_USER={{es_user}}
|
||||||
ES_GROUP=elasticsearch
|
ES_GROUP={{es_group}}
|
||||||
|
|
||||||
# Directory where the Elasticsearch binary distribution resides
|
# Directory where the Elasticsearch binary distribution resides
|
||||||
ES_HOME=/usr/share/$NAME
|
ES_HOME={{es_home}}
|
||||||
|
|
||||||
# Heap size defaults to 256m min, 1g max
|
# Heap size defaults to 256m min, 1g max
|
||||||
# Set ES_HEAP_SIZE to 50% of available RAM, but no more than 31g
|
# Set ES_HEAP_SIZE to 50% of available RAM, but no more than 31g
|
||||||
|
|
@ -71,13 +71,13 @@ MAX_OPEN_FILES=65535
|
||||||
#MAX_LOCKED_MEMORY=
|
#MAX_LOCKED_MEMORY=
|
||||||
|
|
||||||
# Elasticsearch log directory
|
# Elasticsearch log directory
|
||||||
LOG_DIR=/var/log/$NAME
|
LOG_DIR={{log_dir}}
|
||||||
|
|
||||||
# Elasticsearch data directory
|
# Elasticsearch data directory
|
||||||
DATA_DIR=/var/lib/$NAME
|
DATA_DIR={{ data_dirs | array_to_str }}
|
||||||
|
|
||||||
# Elasticsearch configuration directory
|
# Elasticsearch configuration directory
|
||||||
CONF_DIR=/etc/$NAME
|
CONF_DIR={{conf_dir}}
|
||||||
|
|
||||||
# Maximum number of VMA (Virtual Memory Areas) a process can own
|
# Maximum number of VMA (Virtual Memory Areas) a process can own
|
||||||
MAX_MAP_COUNT=262144
|
MAX_MAP_COUNT=262144
|
||||||
|
|
@ -86,7 +86,7 @@ MAX_MAP_COUNT=262144
|
||||||
#ES_GC_LOG_FILE=/var/log/elasticsearch/gc.log
|
#ES_GC_LOG_FILE=/var/log/elasticsearch/gc.log
|
||||||
|
|
||||||
# Elasticsearch PID file directory
|
# Elasticsearch PID file directory
|
||||||
PID_DIR="/var/run/elasticsearch"
|
PID_DIR={{pid_dir}}
|
||||||
|
|
||||||
# End of variables that can be overwritten in $DEFAULT
|
# End of variables that can be overwritten in $DEFAULT
|
||||||
|
|
||||||
|
|
@ -103,7 +103,7 @@ fi
|
||||||
|
|
||||||
# Define other required variables
|
# Define other required variables
|
||||||
PID_FILE="$PID_DIR/$NAME.pid"
|
PID_FILE="$PID_DIR/$NAME.pid"
|
||||||
DAEMON=$ES_HOME/bin/elasticsearch
|
DAEMON={{es_home}}/bin/elasticsearch
|
||||||
DAEMON_OPTS="-d -p $PID_FILE --default.path.home=$ES_HOME --default.path.logs=$LOG_DIR --default.path.data=$DATA_DIR --default.path.conf=$CONF_DIR"
|
DAEMON_OPTS="-d -p $PID_FILE --default.path.home=$ES_HOME --default.path.logs=$LOG_DIR --default.path.data=$DATA_DIR --default.path.conf=$CONF_DIR"
|
||||||
|
|
||||||
export ES_HEAP_SIZE
|
export ES_HEAP_SIZE
|
||||||
|
|
@ -227,4 +227,4 @@ case "$1" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
---
|
---
|
||||||
java: "{{ es_java | default('openjdk-7-jre-headless') }}"
|
java: "{% if es_java is defined %}{{es_java}}{%elif (ansible_distribution == 'Ubuntu' and ansible_distribution_version | version_compare('15.10', '>=')) %}openjdk-8-jre-headless{% else %}openjdk-7-jre-headless{% endif %}"
|
||||||
default_file: "/etc/default/elasticsearch"
|
default_file: "/etc/default/elasticsearch"
|
||||||
es_home: "/usr/share/elasticsearch"
|
es_home: "/usr/share/elasticsearch"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue