<% system_vms.each do |vm| -%> <% if vm['privateip'] -%> object Host "<%= vm['name'] %>" { import "generic-host" address = "<%= vm['privateip'] %>" groups = [ "CloudstackSystemVm<%= '" , "CloudstackSSVM' if vm['systemvmtype'] == 'secondarystoragevm' %>" ] vars.zone = "<%= zone['name'] %>" } <% end -%> <% end -%>