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:

rule1 ip1ip2

rule2 ip1ip2

Do you have an idea what I am doing wrong?

Thank you,
Sergiu

-- 


This message and its attachments are private and confidential. If you have 
received this message in error, please notify the sender and remove it and 
its attachments from your system.

The University of Westminster is a charity and a company 
limited by guarantee. Registration number: 977818 England. 
Registered Office: 309 Regent Street, London W1B 2UW.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/12e37c3e-5a27-4b44-bb4a-fd9cd839e0bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to