-
-
Notifications
You must be signed in to change notification settings - Fork 599
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
Can't install plugin twice #408
Comments
Need to be: elasticsearch_plugin("hq") do
url "https://github.com/royrusso/elasticsearch-HQ"
action [:install]
retries 0
retry_delay 2
default_guard_interpreter :default
declared_type :elasticsearch_plugin
cookbook_name "gz-elastic"
recipe_name "plugins"
end |
Hello! Indeed, the plugin name is technically just 'hq', and there's no API we have to figure out the plugin directory's name or if the plugin is already installed. |
Hi @martinb3 Unfortunately, I'm still running into the same issue: elasticsearch_plugin 'royrusso/elasticsearch-HQ' do
name 'hq'
end Error:
|
I noticed that it returns a code shell_out!("#{es_conf.path_bin[es_install.type]}/plugin install #{url}".split(' '), user: es_user.username, group: es_user.groupname, :returns => [0,74]) Pretty much either accept 74 as a valid return code (which I think we should) or parse the exception as well (less pretty). Let me know what you think, I can make a PR for it in case. |
@scalp42 Can you try this way?
|
@martinb3 I had the Working! |
Getting the following when trying to install twice a plugin:
The text was updated successfully, but these errors were encountered: