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
@@ -159,7 +201,7 @@ Following variables affect the versions installed:
159
201
*```es_version``` (e.g. "1.5.2").
160
202
*```es_start_service``` (true (default) or false)
161
203
*```es_plugins_reinstall``` (true or false (default) )
162
-
*```es_plugins``` (an array of plugin definitons e.g.:
204
+
*```es_plugins``` (an array of plugin definitions e.g.:
163
205
164
206
```
165
207
es_plugins:
@@ -183,10 +225,12 @@ By default, each node on a host will be installed to use unique pid, plugin, wor
183
225
controlled by the following parameters:
184
226
185
227
*```es_pid_dir``` - defaults to "/var/run/elasticsearch".
186
-
*```es_data_dir``` - defaults to "/var/lib/elasticsearch".
228
+
*```es_data_dirs``` - defaults to "/var/lib/elasticsearch". This can be a list or comma separated string e.g. ["/opt/elasticsearch/data-1","/opt/elasticsearch/data-2"] or "/opt/elasticsearch/data-1,/opt/elasticsearch/data-2"
187
229
*```es_log_dir``` - defaults to "/var/log/elasticsearch".
188
230
*```es_work_dir``` - defaults to "/tmp/elasticsearch".
189
231
*```es_plugin_dir``` - defaults to "/usr/share/elasticsearch/plugins".
232
+
*```es_restart_on_change``` - defaults to true. If false, changes will not result in Elasticsearch being restarted.
233
+
*```es_plugins_reinstall``` - defaults to false. If true, all currently installed plugins will be removed from a node. Listed plugins will then be re-installed.
190
234
191
235
This role ships with sample scripts and templates located in the [files/scripts/](files/scripts) and [files/templates/](files/templates) directories, respectively. These variables are used with the Ansible [with_fileglob](http://docs.ansible.com/ansible/playbooks_loops.html#id4) loop. When setting the globs, be sure to use an absolute path.
192
236
*```es_scripts_fileglob``` - defaults to `<role>/files/scripts/`.
@@ -203,3 +247,8 @@ all supported platforms.
203
247
Elasticsearch restarted where required.
204
248
* Systemd is used for Ubuntu versions >= 15, Debian >=8, Centos >=7. All other versions use init for service scripts.
205
249
250
+
## IMPORTANT NOTES RE PLUGIN MANAGEMENT
251
+
252
+
* 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 2.x.
253
+
* If no plugins are listed in the playbook for a node, all currently installed plugins will be removed.
254
+
* The role does not currently support automatic detection of differences between installed and listed plugins (other than if none are listed). Should users wish to change installed plugins should set es_plugins_reinstall to true. This will cause all currently installed plugins to be removed and those listed to be installed. Change detection will be implemented in future releases.
Copy file name to clipboardExpand all lines: tasks/elasticsearch-plugins.yml
+18-8
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,32 @@
1
1
---
2
2
3
-
#es_plugins_reinstall will be set to true if elasticsearch_install.changed i.e. we have changed ES version
3
+
#es_plugins_reinstall will be set to true if elasticsearch_install.changed i.e. we have changed ES version, or if no plugins listed. Otherwise it is false and requires explicitly setting.
4
4
- set_fact: es_plugins_reinstall=true
5
-
when: elasticsearch_install.changed
5
+
when: elasticsearch_install.changed or es_plugins is not defined or es_plugins is none
0 commit comments