On Mon, Feb 13, 2012 at 2:01 PM, Will S. G. <[email protected]> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to