As far as I know this should work. There was a regression in 0.24.6 that broke it though. Which version are you running?

On 2 Apr 2010, at 14:55, Serge Dewailly <serge.dewai...@openevents.fr> wrote:

Hi all,

Is it possible to manage List of list within Puppet ?
I'd like to use something like this :

interfaces = [ [ "eth0", "192.168.120.65", "255.255.255.0", "192.168.120.255 ", "true" ], [ "eth0:0", "192.168.120.66", "255.255.255.0", "192.168.120.255 ", "true" ] ]

When looping over element in a template, I'm getting elements like if it was one list :

<% interfaces.each do |iface| -%>
#param <%= iface %>
<% end -%>

#param eth0
#param 192.168.120.65
#param 255.255.255.0
#param 192.168.120.255
#param true
#param eth0:0
#param 192.168.120.66
#param 255.255.255.0
#param 192.168.120.255
#param true


Thanks for your help.
Serge.

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en .


--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to