This seems like a common problem that I'm pretty sure someone would have solved
already.
Usually a service has a random config file which has something like:
somevar somevalue
or
somevar=somevalue
and i'd be nice to automatically go from that to this:
attributes/default.rb:
default['someservice'][‘someconfig’][‘somevar’]=”somevalue”
template/default/someconfig.erb
somevar=<%= @node['someservice'][‘someconfig’][‘somevar’] %>
Then you just need to define various patterns to identify configs like:
A:B
A=B
A B
And could even do something like
#automatic commentary
A=B
Anyone know if this already exists?
Archive powered by MHonArc 2.6.16.