-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds the possiblity to force a plugin installation - elasticsearch_plugin module #41688
Conversation
The test
|
@@ -43,6 +43,11 @@ | |||
- "Timeout setting: 30s, 1m, 1h..." | |||
- Only valid for Elasticsearch < 5.0. This option is ignored for Elasticsearch > 5.0. | |||
default: 1m | |||
force: | |||
description: | |||
- "Give the possibility to force a plugin installation even with addition permission needed" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would change the wording on this to align more with the Elatic docs and indicate what this parameter is doing under the hood. Something along the lines of "Force batch mode when installing plugins. This is only necessary if a plugin requires additional permissions and console detection fails."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea. I've changed this.
Looks good! Please create a changelog fragment and I'll merge this. See fragments for examples. |
@samdoran Done! ;) |
@@ -85,6 +90,12 @@ | |||
- elasticsearch_plugin: | |||
name: analysis-icu | |||
state: present | |||
|
|||
# Install a the ingest-geoip plugin with a forced installation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the 'a'.
@@ -0,0 +1,4 @@ | |||
--- | |||
minor_changes: | |||
- Add the possibility to use the elasticsearch_plugin installation batch mode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Start this entry with - elasticsearch_plugin -
. This make the module name easier to find when visually scanning the changelogs.
@samdoran done again! ;) |
@nitaco Thank you for all the timely fixes and for your contribution! |
SUMMARY
Some elasticsearch plugins needs an additional confirmation for further permissions in the java. So it's not possible to install these plugins without the --batch mode in the elasticsearch plugin installation process. This mode ignores the confirmation prompt.
ISSUE TYPE
COMPONENT NAME
elasticsearch_plugin
ANSIBLE VERSION
ADDITIONAL INFORMATION
Before:
After: