-
-
Notifications
You must be signed in to change notification settings - Fork 599
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
Make config template configurable #153
Comments
Why not use the common “wrapper cookbook” approach instead? https://github.com/elasticsearch/cookbook-elasticsearch#customizing-the-cookbook. I don't feel very well about having dozens of configurable node attributes in general... |
I prefer to use attributes in such a case, so you can override settings easier in the wrapper cookbook. I have done as described above, but it feels a bit dangerous, because if the name of that template resource changes, it is going to fail... |
If the name of the template would change like that, I guess you'd have to check many other things :) I don't think the goal should be "I don't care about cookbook" changes, but to facilitate configuration & customization. This is a goal I take seriously. On 28. 10. 2013, at 13:13, maikihde [email protected] wrote:
|
+1 for this feature request! I also need to configure the logging in a way that I cannot do it with the provided template. While its possible to do it with resource manipulation like you describe in your documentation, it still feels a lot like monkey patching and not like using a library(-cookbook). Logging will probably be one of more heavily customized thinks in an specific environment, so an additional attribute maybe well justified. If you consider adding this functionality, I can offer to work on it and send a pull request. |
@maikihde @neovatar Agreed that it could help in some scenarios. Though, given the myriad of ways you can accomplish something in Chef, what is the exact usage pattern here? Can you elaborate? 1/ User uses this cookbook as is |
1/ yes, I try hard to not fork cookbooks if not absolutely neccessary Hope this clears it up. |
@maikihde Sorry, the issue slipped by. There's a discussion about something similar in #186 now, I think we should have this support for the brave people. I'm no Lisp fanboi, but I shudder a bit when I think about the |
Hi, add some patch which should implement the feature, can you have a look? Thanks! |
Looks good for me, thanks! Maik Von: Karel Minarik [[email protected]] Hi, add some patch which should implement the feature, can you have a look? Thanks! — |
Hi,
it would would be really cool, if the template that creates the logging.yml (and maybe others) could be made configurable, so that an application cookbook could set attributes to override the template file and instead "plug" in it's own template. Similarly as it is done in the
varnish
cookbook:Kind Regards,
Maik
The text was updated successfully, but these errors were encountered: