I try to create something like this with my cookbook “conffile”:
The goal is to create a configuration file from an Hash.
My documentation is quite… poor… because I changed my mind so many many
For the moment I can only manipulating “INI” type file for the moment (like
you seems to want).
You can find some examples in my “test” recipe:
Even if “ini” type file are really old… manipulating this with ruby is
really a mess!
Many different lib, none of them perfect.
I will be really happy if you are helping me to improve this.
On Tue, Apr 8, 2014 at 12:59 AM, email@example.com wrote:
This seems like a common problem that I’m pretty sure someone would have
Usually a service has a random config file which has something like:
and i’d be nice to automatically go from that to this:
somevar=<%= @node[‘someservice’][‘someconfig’][‘somevar’] %>
Then you just need to define various patterns to identify configs like:
And could even do something like
Anyone know if this already exists?