<% routers.each do |router| -%> <% if router['linklocalip'] -%> define host { host_name <%= router['name'] %> display_name <%= router['name'] %> (<%= router['linklocalip'] %>)<%= " - #{router['project']}" if router['project'] %> - <%= router['zonename'] %> address <%= router['linklocalip'] %> use Linux-Host,host-pnp hostgroups CloudstackRouter check_command check-host-alive register 1 } <% end -%> <% end -%>