Skip to content
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

Plugin installation skipping #252

Closed
itsNikolay opened this issue Oct 29, 2014 · 1 comment
Closed

Plugin installation skipping #252

itsNikolay opened this issue Oct 29, 2014 · 1 comment

Comments

@itsNikolay
Copy link

I want to install plugin: https://github.com/imotov/elasticsearch-analysis-morphology
I have a chef role elasticsearch.json:

{
  "name": "elasticsearch",
  "description": "ElasticSearch...",
  "json_class": "Chef::Role",
  "java": {
    "install_flavor": "openjdk",
    "jdk_version": "7"
  },
  "elasticsearch": {
    "cluster" : { "name" : "elasticsearch_first" },
    "plugins": {
      "imotov/elasticsearch-analysis-morphology": {
        "url": "http://dl.bintray.com/content/imotov/elasticsearch-plugins/elasticsearch-analysis-morphology-1.1.0.zip"
      }
    }
  },
  "run_list": [
    "java",
    "elasticsearch",
    "elasticsearch::plugins",
    "elasticsearch::monit"
  ],
  "chef_type": "role"
}

Also i'm not familiar with Elasticsearch but it seems as the plugin was not been installed (plugin dir is empty):
screenshot at 14-42-18

(But manually the plugin installs well
bin/plugin -u http://dl.bintray.com/content/imotov/elasticsearch-plugins/elasticsearch-analysis-morphology-1.1.0.zip --install imotov/elasticsearch-plugins )
It seems as my fault, not cookbook's, but i can not understand why the plugin was not installed.
Thanks

Probably the line
https://github.com/elasticsearch/cookbook-elasticsearch/blob/master/libraries/install_plugin.rb#L40
should be changed on ( with -u #{url} )

command = "#{node.elasticsearch[:bindir]}/plugin -install #{name}#{version} -u #{url}"

If this so, could i contribute the fix ?

@martinb3
Copy link
Contributor

martinb3 commented Jul 7, 2015

Hello! We've re-written the cookbook using libraries that expose resources and providers, so you shouldn't see this problem on the newer version; it should also be much easier to install plugins. Hope this helps!

@martinb3 martinb3 closed this as completed Jul 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants