Coder Social home page Coder Social logo

Comments (12)

gingerwizard avatar gingerwizard commented on June 22, 2024 4

Discussing with ES dev the best way to do this will be to start a standalone node with the configuration. I'm looking at ways to achieve this prior to running the playbook as a pre-check.

from ansible-elasticsearch.

gingerwizard avatar gingerwizard commented on June 22, 2024 2

@strootman i was thinking we would need to download the version the user is using - as config is subject to change. Effectively local-action commands. This way we can warn if settings are deprecated etc.

This is likely to be a completely separate task with an optional switch. Happy for someone to take this on as i'll be focusing on 5.0 support after the xpack pull request.

from ansible-elasticsearch.

gingerwizard avatar gingerwizard commented on June 22, 2024 1

@babadofar yes this is indeed possible in ES. I'll investigate and see if we can do this with ES.

from ansible-elasticsearch.

gingerwizard avatar gingerwizard commented on June 22, 2024

@babadofar whilst i like the idea of this feature, any validation will require us knowledge of the settings. This will somewhat negate the purpose of the map.

However, if it is just syntax checks you are after that maybe possible?
We might be able to convert it to configuration and ask the ES binary if its valid, stopping earlier if not. Would this satisfy your requirement?

from ansible-elasticsearch.

babadofar avatar babadofar commented on June 22, 2024

When using the template function of ansible, there is an option to make it validate the file that results from running the template using a command that you can specify. I have used this previously to validate Logstash configurations, using the Logstash --configtest parameter. I'm not sure whether there is such a parameter to elasticsearch. So perhaps this issue is better moved there?

from ansible-elasticsearch.

gingerwizard avatar gingerwizard commented on June 22, 2024

@babadofar So configuration validation is coming in ES 5.0. I will raise a ticket asking for a -t flag and reference

from ansible-elasticsearch.

strootman avatar strootman commented on June 22, 2024

Docker may be a nice solution for this.

$ docker run -v [mount generated config file to correct location] elasticsearch:5.0 elasticsearch -t ...

Assuming that running elasticsearch with the -t option returns with correct exit codes.

from ansible-elasticsearch.

botelastic avatar botelastic commented on June 22, 2024

This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.

from ansible-elasticsearch.

botelastic avatar botelastic commented on June 22, 2024

This issue has been automatically closed because it has not had recent activity since being marked as stale.

from ansible-elasticsearch.

ktham avatar ktham commented on June 22, 2024

@gingerwizard Was Configuration validation ever released?

from ansible-elasticsearch.

xrkolovos avatar xrkolovos commented on June 22, 2024

Any news on this one?

from ansible-elasticsearch.

jruariveiro avatar jruariveiro commented on June 22, 2024

Any news under the sun?

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.