GithubHelp home page GithubHelp logo

Comments (12)

electrical avatar electrical commented on July 1, 2024

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.

antonbabenko avatar antonbabenko commented on July 1, 2024

Would be great addition to this module.

from puppet-elasticsearch.

chrisboulton avatar chrisboulton commented on July 1, 2024

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.

electrical avatar electrical commented on July 1, 2024

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.

electrical avatar electrical commented on July 1, 2024

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.

electrical avatar electrical commented on July 1, 2024

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.

electrical avatar electrical commented on July 1, 2024

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.

electrical avatar electrical commented on July 1, 2024

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.

electrical avatar electrical commented on July 1, 2024

Need to write some tests for this feature and then i can implement it. stay tuned :-)

from puppet-elasticsearch.

electrical avatar electrical commented on July 1, 2024

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.

matthewbarr avatar matthewbarr commented on July 1, 2024

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.

electrical avatar electrical commented on July 1, 2024

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)

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.