[chef] Automatic Config Templator


Chronological Thread 
  • From: < >
  • To:
  • Subject: [chef] Automatic Config Templator
  • Date: Mon, 7 Apr 2014 15:59:40 -0700 (PDT)

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.

§