Comments (12)
Relevant config part: http://pastebin.com/QSWkMAau
Create a define 'node' that exports the required information so it can be collected and put in the config file.
from puppet-elasticsearch.
Would be great addition to this module.
from puppet-elasticsearch.
If anyone is interested in how we go about this right now - we query the information from our PuppetDB installation using these: https://github.com/dalen/puppet-puppetdbquery
from puppet-elasticsearch.
I'm currently trying to build a library which allows for collecting variables and then fetch those as an array, which i then hopefully can use in the config variable for the node list.
Otherwise i would need to do some file concat solution.
from puppet-elasticsearch.
I'm pretty far with this now.
Went for a sort if file / variable concat variant.
It seems to be working pretty good for now.
In the meantime i also found an other bug in the current config file generator ( fixed now ) which didn't print arrays :-(
from puppet-elasticsearch.
There are still a few issues with this feature and won't make it into master for a while i think.
The biggest problem is merging the configuration hashes together.
Found some solutions but needs to be fully tested.
from puppet-elasticsearch.
First preview of some generated code:
## GENERATED BY PUPPET ##
---
cluster:
name: somename
routing:
allocation:
awareness:
attributes: rack
discovery:
zen:
ping:
unicast:
hosts:
- address_host1
- address_host2
from puppet-elasticsearch.
Seems i got lucky :-)
I'm able to collect different nodes and add them to the whole config_hash and make it work as expected.
Nicely added feature is that we can write up the keys in a shorter way. see issue #11
from puppet-elasticsearch.
Need to write some tests for this feature and then i can implement it. stay tuned :-)
from puppet-elasticsearch.
Sorry for lack of updates on this. Just came back from vacation.
I haven't been able yet to write the testing stuff for this so its not implemented yet.
from puppet-elasticsearch.
Not sure if you have any input w/ the actual folks working on elastic search, but the ability to just do a DNS SVR lookup to specify the hosts would make this whole thing much easier! the AWS pluign requires more access than I'd like, but a simple DNS solution would be great.
from puppet-elasticsearch.
I've decided to drop this feature.
When i started with this i thought all hosts had to be listed but learned a while ago that was not required.
managing a small list of hosts should be fairly easy.
Closing.
from puppet-elasticsearch.
Related Issues (20)
- elasticsearch_keystore can't modify frozen String
- elasticsearch_keystore resource fails due to legacy instance code HOT 3
- Node facts not generated when Elasticsearch in cluster mode
- Could not evaluate: undefined method `join' for :name:Symbol HOT 2
- elasticsearch_plugin/ruby.rb wrong path to call plugin binary HOT 2
- ssl=true and version is not defined, gives an error HOT 1
- Setting an Elastic Version should be optional HOT 1
- New release, please HOT 1
- OpenSearch support ? HOT 1
- Elasticsearch API responded with: no handler found for uri [/_xpack/license?acknowledge=true] and method [PUT]
- File jvm.options in root is unmanaged/may be missing
- why was log4j2.properties.erb configuration commented ? HOT 1
- warnings when used with stlib 9. HOT 1
- fix lib directory permissions without changing the mode of files in the directory
- puppet-elastic_stack version HOT 1
- Use Elasticsearch 7+ as default for configuration HOT 1
- mediawiki needs 6.8.23 and I needed to change this
- Issues on the elasticsearch_component_template.rb and elasticsearch_index_template.rb HOT 2
- Problem with puppet CA and elasticsearch.keystore
- `bin/plugin` is used insead of `bin/elasticsearch-plugin` on the first run
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 puppet-elasticsearch.