cookbooks/fb_limits/templates/default/limits.conf.erb (7 lines of code) (raw):

<% node['fb_limits'].keys.sort.each do |domain| %> <% node['fb_limits'][domain].to_hash.each do |item, hash| %> <% hash.each do |type,value| %> <%= "%-15s %-15s %-15s %-15s" % [ domain, type, item, value ] %> <% end %> <% end %> <% end %>