Wednesday, January 27th, 2010 | Author: Nico
Today I started installing a reverse proxy at $WORK. I choose to follow this way, and all my DNS data is stored in my CMDB. Once again, the solution came from #puppet ! You can embed some “pure” ruby code in ERB templates. And, yes, you can query your database !
<% dbh = DBI.connect("DBI:Mysql:yourbase:mysql.mycorp.com", "you", "XXXX") query = dbh.prepare("your fancy query") query.execute while row = query.fetch do todisplay=some_funny_things() %> <%= todisplay %> <% end %>
I use this technique to generate the dnsmasq data file. Just use the subscribe function and all is done !

Wednesday, 3. March 2010
What CMDB product do you use?
What kinds of data do you have in it?
Do you find it useful?
Saturday, 6. March 2010
It’s a home grown CMDB. I have all my DNS, DHCP, Nagios, Puppet, Munin & Vhosts data inside. I think I couldn’t live whithout it now