GithubHelp home page GithubHelp logo

Comments (13)

salekseev avatar salekseev commented on August 20, 2024

Any plans for implementation in the near term? Thanks.

from puppet-elasticsearch.

electrical avatar electrical commented on August 20, 2024

Hi,

Im currently doing some investigation on the different options for plugin installs and see how i can nicely put that in a define.
I hope to have this feature done within a week.

from puppet-elasticsearch.

salekseev avatar salekseev commented on August 20, 2024

If you have a plan of implementation, maybe I can help. I was thinking of duplicating/refactoring the code from http://ti57.blogspot.com/2013/03/installing-elasticsearch-using-puppet.html that relates to installing plugins.

from puppet-elasticsearch.

electrical avatar electrical commented on August 20, 2024

You are more then welcome to submit a PR :-)

from puppet-elasticsearch.

electrical avatar electrical commented on August 20, 2024

My idea is to have a define that can handle the different type's of sources:

  • Github
  • Download.elasticsearch.org
  • Local file

Not sure yet about the checking if a plugin is already installed or not.

from puppet-elasticsearch.

jdowning avatar jdowning commented on August 20, 2024

First off -- great work on this @electrical !

For those watching this issue, I simply add this to the node definition to install a plugin:

exec { 'install-bigdesk-plugin':
  command => '/usr/share/elasticsearch/bin/plugin -install lukas-vlcek/bigdesk/2.0.0',
  creates => '/usr/share/elasticsearch/plugins/bigdesk',
}~>Service['elasticsearch']

from puppet-elasticsearch.

electrical avatar electrical commented on August 20, 2024

@justindowning Thanks for the kind words and the tip :-)
Will take that in account.

from puppet-elasticsearch.

salekseev avatar salekseev commented on August 20, 2024

Installed plugins could be queried by HTTP in JSON format i.e. http://$::ipaddress:9200/_nodes/$::node.name/plugin will return something like:

{"ok":true,"cluster_name":"athena.syseng.lab.es.logstash","nodes":{"Dk2vnG4PQu26fhQ1RQF9Og":{"name":"lab027","transport_address":"inet[lab027.athenalab.athenahealth.com/10.7.212.37:9300]","hostname":"lab027.athenalab.athenahealth.com","version":"0.90.0","http_address":"inet[/10.7.212.37:9200]","plugins":[{"name":"river-rabbitmq","description":"River RabbitMQ Plugin","jvm":true,"site":false},{"name":"bigdesk","description":"No description found for bigdesk.","url":"/_plugin/bigdesk/","jvm":false,"site":true},{"name":"head","description":"No description found for head.","url":"/_plugin/head/","jvm":false,"site":true},{"name":"paramedic","description":"No description found for paramedic.","url":"/_plugin/paramedic/","jvm":false,"site":true}]}}}

from puppet-elasticsearch.

electrical avatar electrical commented on August 20, 2024

Ah cool :-) that could give a good option to check if a plugin is installed without having to know where its installed.

from puppet-elasticsearch.

electrical avatar electrical commented on August 20, 2024

Almost finished with the main part.
Still looking at how to verify its installed. for some reason the solution from @salekseev doesn't work on my ES install. perhaps mine is just to old ( 0.20.2 )

from puppet-elasticsearch.

salekseev avatar salekseev commented on August 20, 2024

The HTTP API information is from http://www.elasticsearch.org/guide/reference/api/admin-cluster-nodes-info/, I'll try to reach out to them to see what's the oldest version that supports it. Do you get anything back or just an error?

from puppet-elasticsearch.

electrical avatar electrical commented on August 20, 2024

@salekseev Finally been able to do some work on it.
It seems that the plugin info has been added into the 0.90.0 release?
Tried 0.20.2 till 0.20.6 and those gave nothing.

Now i can continue further on it :-)

from puppet-elasticsearch.

electrical avatar electrical commented on August 20, 2024

Basic plugin install is implemented.
Might improve it in the future if required.
Please test it out :-)

from puppet-elasticsearch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.