Good morning guys,I am trying to template the OMD rules file and for this I am using 2 arrays one which holds the IPs and the other one the Services.In my ERB template I have this:
<% for @omd_service in @omd_service -%>
<% var1 = @omd_service %>
<% @server2.each do |omd_ip| -%><% end -%><%= var1 %> <%= omd_ip %><% end -%>However, the output isn't what I am expecting:
<% @omd_service.zip(@server2).each do |service, server| -%>
<%= service %> <%= server %>
<% end -%>