Re: [Puppet Users] A ruby question, about arrays

2011-03-13 Thread Mohamed Lrhazi
On Sun, Mar 13, 2011 at 12:04 AM, Naresh V wrote: > $uiso_scanners = { >         "uiso-scanner.example.com" => "192.168.151.21", >         "uiso-scanner1.example.com" => "192.168.18.37", > } This works and I like it better. Thanks a lot. -- You received this message because you are subscribed t

Re: [Puppet Users] A ruby question, about arrays

2011-03-12 Thread Naresh V
On 13 March 2011 05:00, Mohamed Lrhazi wrote: > I have a var defined like this: > > $uiso_scanners = [ >    ["uiso-scanner.example.com","192.168.151.21"], >    ["uiso-scanner1.example.com","192.168.18.37"], >    ] > > and then in a template I have: > > <% if uiso_scanners -%> > # Allow communicati

[Puppet Users] A ruby question, about arrays

2011-03-12 Thread Mohamed Lrhazi
I have a var defined like this: $uiso_scanners = [ ["uiso-scanner.example.com","192.168.151.21"], ["uiso-scanner1.example.com","192.168.18.37"], ] and then in a template I have: <% if uiso_scanners -%> # Allow communication with UISO scanners <% uiso_scanners.each do |uiso_scanner| -