On Mon, Feb 13, 2012 at 2:01 PM, Will S. G. <w...@arw.in> wrote:

>
> Is there a way to display eth{0-5} as well?
>

You could do a for loop from 0 to N (5?) and check if the variable exists (if
has_variable?("ipaddress_eth" + index)) then print it. I'm sure there's
probably a nicer way of doing this in Ruby :)

- Gonzalo

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@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