Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Index template config files #164

Closed
arr-dev opened this issue Nov 22, 2013 · 6 comments
Closed

Index template config files #164

arr-dev opened this issue Nov 22, 2013 · 6 comments

Comments

@arr-dev
Copy link

arr-dev commented Nov 22, 2013

I've examined whole cookbook and there doesn't seem to be a way to define index template files as described in http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-templates.html#config

I guess that is pretty common and shouldn't need to be done manually or in a wrapper cookbook.

@karmi
Copy link
Contributor

karmi commented Nov 22, 2013

There isn't, indeed, any direct support for index templates. (It is "pretty common" in certain circumstances, not in general, to be honest.)

When thinking about it, there isn't much the coobook can do here, though?, since everybody has a different template and the actual "execution step" for them is using cookbook_file to transfer them from the cookbook to the system?

@arr-dev
Copy link
Author

arr-dev commented Nov 22, 2013

Yeah, guess you are right.

Maybe just some LWRP that takes care of creating folders and placing templates in correct paths.
Or even a simple syntax check, since as I can see, JSON root must match file name.

Just some thoughts from my side.

@karmi
Copy link
Contributor

karmi commented Nov 22, 2013

Agreed!, some supporting infrastructure like this could be handy. I'm just wary of adding stuff which I myself haven't used & verified in a production environment.

@arr-dev
Copy link
Author

arr-dev commented Nov 22, 2013

I will probably implement this in a wrapper cookbook and once it is tested, I will create a PR.

@karmi
Copy link
Contributor

karmi commented Nov 22, 2013

Cool!

@karmi karmi closed this as completed Nov 22, 2013
@dieend
Copy link

dieend commented Dec 18, 2014

Is there any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants