You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 24, 2022. It is now read-only.
**THIS ROLE IS FOR 5.x. FOR 2.x SUPPORT PLEASE USE THE 2.x BRANCH.**
4
+
**THIS ROLE IS FOR 6.x, 5.x. FOR 2.x SUPPORT PLEASE USE THE 2.x BRANCH.**
5
5
6
6
Ansible role for 5.x Elasticsearch. Currently this works on Debian and RedHat based linux systems. Tested platforms are:
7
7
8
8
* Ubuntu 14.04/16.04
9
9
* Debian 8
10
10
* Centos 7
11
11
12
-
The latest Elasticsearch versions of 5.x are actively tested. **Only Ansible versions > 2.3.2 are supported, as this is currently the only version tested.**
12
+
The latest Elasticsearch versions of 6.x are actively tested. **Only Ansible versions > 2.3.2 are supported, as this is currently the only version tested.**
13
13
14
14
##### Dependency
15
15
This role uses the json_query filter which [requires jmespath](https://github.com/ansible/ansible/issues/24319) on the local machine.
@@ -329,7 +329,7 @@ These can either be set to a user declared in the file based realm, with admin p
329
329
330
330
In addition to es_config, the following parameters allow the customization of the Java and Elasticsearch versions as well as the role behaviour. Options include:
331
331
332
-
*```es_major_version``` Should be consistent with es_version. For versions >= 5.0 this must be "5.x".
332
+
*```es_major_version``` Should be consistent with es_version. For versions >= 5.0 and < 6.0 this must be "5.x". For versions >= 6.0 this must be "6.x".
333
333
*```es_version``` (e.g. "5.1.2").
334
334
*```es_api_host``` The host name used for actions requiring HTTP e.g. installing templates. Defaults to "localhost".
335
335
*```es_api_port``` The port used for actions requiring HTTP e.g. installing templates. Defaults to 9200. **CHANGE IF THE HTTP PORT IS NOT 9200**
@@ -396,7 +396,7 @@ To define proxy only for a particular plugin during its installation:
396
396
* The role assumes the user/group exists on the server. The elasticsearch packages create the default elasticsearch user. If this needs to be changed, ensure the user exists.
397
397
* The playbook relies on the inventory_name of each host to ensure its directories are unique
398
398
* Changing an instance_name for a role application will result in the installation of a new component. The previous component will remain.
399
-
* KitchenCI has been used for testing. This is used to confirm images reach the correct state after a play is first applied. We currently test only the latest version of 5.x on
399
+
* KitchenCI has been used for testing. This is used to confirm images reach the correct state after a play is first applied. We currently test only the latest version of 6.x on
400
400
all supported platforms.
401
401
* The role aims to be idempotent. Running the role multiple times, with no changes, should result in no state change on the server. If the configuration is changed, these will be applied and
402
402
Elasticsearch restarted where required.
@@ -405,7 +405,7 @@ Elasticsearch restarted where required.
405
405
406
406
## IMPORTANT NOTES RE PLUGIN MANAGEMENT
407
407
408
-
* If the ES version is changed, all plugins will be removed. Those listed in the playbook will be re-installed. This is behaviour is required in ES 5.x.
408
+
* If the ES version is changed, all plugins will be removed. Those listed in the playbook will be re-installed. This is behaviour is required in ES 6.x.
409
409
* If no plugins are listed in the playbook for a node, all currently installed plugins will be removed.
410
410
* The role supports automatic detection of differences between installed and listed plugins - installing those listed but not installed, and removing those installed but not listed. Should users wish to re-install plugins they should set es_plugins_reinstall to true. This will cause all currently installed plugins to be removed and those listed to be installed.
Copy file name to clipboardExpand all lines: tasks/elasticsearch-plugins.yml
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@
19
19
ignore_errors: yes
20
20
environment:
21
21
CONF_DIR: "{{ conf_dir }}"
22
+
ES_PATH_CONF: "{{ conf_dir }}"
22
23
ES_INCLUDE: "{{ instance_default_file }}"
23
24
24
25
#if es_plugins_reinstall is set to true we remove ALL plugins
@@ -47,6 +48,7 @@
47
48
register: plugin_removed
48
49
environment:
49
50
CONF_DIR: "{{ conf_dir }}"
51
+
ES_PATH_CONF: "{{ conf_dir }}"
50
52
ES_INCLUDE: "{{ instance_default_file }}"
51
53
52
54
- name: Install elasticsearch plugins
@@ -60,6 +62,7 @@
60
62
notify: restart elasticsearch
61
63
environment:
62
64
CONF_DIR: "{{ conf_dir }}"
65
+
ES_PATH_CONF: "{{ conf_dir }}"
63
66
ES_INCLUDE: "{{ instance_default_file }}"
64
67
ES_JAVA_OPTS: "{% if item.proxy_host is defined and item.proxy_host != '' and item.proxy_port is defined and item.proxy_port != ''%} -Dhttp.proxyHost={{ item.proxy_host }} -Dhttp.proxyPort={{ item.proxy_port }} -Dhttps.proxyHost={{ item.proxy_host }} -Dhttps.proxyPort={{ item.proxy_port }} {% elif es_proxy_host is defined and es_proxy_host != '' %} -Dhttp.proxyHost={{ es_proxy_host }} -Dhttp.proxyPort={{ es_proxy_port }} -Dhttps.proxyHost={{ es_proxy_host }} -Dhttps.proxyPort={{ es_proxy_port }} {% endif %}"
0 commit comments