<% routers.each do |router| -%> <% if router['linklocalip'] -%> object Host "<%= router['name'] %> (<%= router['linklocalip'] %>)<%= " - #{router['project']}" if router['project'] %> - <%= router['zonename'] %>" { import "generic-host" address = "<%= router['linklocalip'] %>" groups = [ "CloudstackRouter" <%= ', "datacenter-ix"' if router['zonename'] == 'ZUERICH_IX' %> <%= ', "datacenter-bie"' if router['zonename'] == 'BIEL_CU01' %> ] } <% end -%> <% end -%>