{ "environments": { <% environments.each_with_index do |environment, index| -%> "<%= environment %>": { "servers": [ ] }<% if index < environments.length - 1 -%>,<% end -%> <% end -%> } }