Comments (12)
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.
@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.
@babadofar yes this is indeed possible in ES. I'll investigate and see if we can do this with ES.
from ansible-elasticsearch.
@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.
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.
@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.
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.
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.
This issue has been automatically closed because it has not had recent activity since being marked as stale.
from ansible-elasticsearch.
@gingerwizard Was Configuration validation ever released?
from ansible-elasticsearch.
Any news on this one?
from ansible-elasticsearch.
Any news under the sun?
from ansible-elasticsearch.
Related Issues (20)
- Failure in "Debian - Ensure elasticsearch is installed" HOT 4
- FR: Install Elasticsearch-plugins with this role HOT 2
- Wrong elasticsearch.keystore permissions forbid elasticsearch.service from starting HOT 6
- issue with "could not find java in bundled JDK" HOT 2
- Does not accept static IP config Eg: transport.host: <hostname>" HOT 2
- gpg dependencies missing HOT 3
- Segmentation fault in JNA library due to non-existent home directory for elasticsearch user HOT 2
- Specifying `path.data` as a list is deprecated in Elasticsearch 7.13 HOT 2
- Turn on systemd on OracleLinux HOT 2
- kibana connect to elastic HOT 1
- Bootstrapping a new/additional instance with activated security fails HOT 1
- Single node cluster configuration HOT 2
- Playbook not working with rh8 HOT 3
- filter_plugins/custom.py is skipped when ansible is installed through pip HOT 2
- Hacktoberfest participation
- ssl-tls-setup.md should point to location of bin/elasticsearch-certutil HOT 2
- Role fails when pointed to es_ssl_keystore / es_ssl_truststore using CA and Cert created with bin/elasticsearch-certutil HOT 4
- Upload pem certs from local to remote
- Safe options for log4j2 - CVE-2021-44228 HOT 4
- How to remove always tag HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-elasticsearch.