<% @extra_host_groups.each do |group, members| -%> # <%= group %> define hostgroup { hostgroup_name <%= group %> alias <%= group %> members <%= members %> } <% end -%>