Coder Social home page Coder Social logo

Comments (9)

barryib avatar barryib commented on September 23, 2024

I think some of requested improvements are already supported:

  1. Remove and re-install all plugins if ES is upgraded - as required in 2.x elasticsearch-plugins.yml#L5
  2. Provide aa flag to re-install all plugins es_plugins_reinstall
  3. Install plugins listed and not installed - currently supported
  4. Remove all plugins if none are specified and some are installed

from ansible-elasticsearch.

barryib avatar barryib commented on September 23, 2024

Would it be nice to use the elasticsearch_plugin for ansible to manage plugins? Here is the module on github

from ansible-elasticsearch.

electrical avatar electrical commented on September 23, 2024

Would be nice but we still support ansible pre 2.0 :-)

from ansible-elasticsearch.

gingerwizard avatar gingerwizard commented on September 23, 2024

1-4 are not currently supported. There is no (2) and upgrades donot occur of plugins on upgrade of ES.
3 is supported.

from ansible-elasticsearch.

gingerwizard avatar gingerwizard commented on September 23, 2024

Is this module maintained for the latest version of ES? Does it work for 1.7 and 2.0 as plugin management commands will/have changed.

from ansible-elasticsearch.

barryib avatar barryib commented on September 23, 2024

@gingerwizard I'm missing something. Can you please correcte me if I'm wrong on these following improvements:

  • Improvement 1: I think that when ES is re-installed, es_plugins_reinstallis set to true. This will remove listed plugins in es_plugins. And those will be installed during plugins installation.
  • Improvement 2: When the es_plugins_reinstall is set to true, this will lead to same case as (1).
  • Improvement 4: For me, only this is not currently supported.

@electrical @gingerwizard Right the ansible module doesn't work on ES 1.x and ES 2.x right now. Its only works on ES 1.x. This is due to the ES verbs changes. But, I think it's a minor bug and can be fixed easily. We should consider using this module in a near future. Our contributions on that module are welcomed :)

from ansible-elasticsearch.

gingerwizard avatar gingerwizard commented on September 23, 2024

So currently it doesn't behave as it should. I'm about to make a pull request that will change this behaviour slightly. The main issue is that when you upgrade ES you need to remove ALL plugins and reinstall them. If any of the plugins change between the listed version and the installed version, we will also have to remove all of them and re-install them - again the plugins require this e.g. shield.

This behaviour, due to class loader checks, may change in the future and we are discussing with the ES dev team.

Happy to use the module for installation of the plugin, but this ticket deals with the above required behaviour. I will add this either tomorrow or late today.

from ansible-elasticsearch.

barryib avatar barryib commented on September 23, 2024

Ok, waiting for your PR for more precisions.

For information, there are PR I made for the ansible's elasticsearch_plugin module to:

from ansible-elasticsearch.

gingerwizard avatar gingerwizard commented on September 23, 2024

@barryib pull request 82 improves this i think. We now remove all plugins and re-install them if the user changes elasticsearch version - as required. If the user changes the defined list nothing happens however - they must use es_plugins_reinstall: true. The next pull request i make (hopefully tomorrow) will diff the lists and remove those not required. Closing this for now in favour of #84

from ansible-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.