Hello,

On 18/03/2016 00:29, Jakov Sosic wrote:
 
> I have interfaces bond0.2 and bond0.3 respectively (VLAN tagged).
> 
> How can I get IP address in hiera?
> 
> 
> I've tried this:
> 
> 
> myvar: "%{::networking.interfaces.bond0.2.ip}"
> 
> 
> but it produces error:
> 
> SERVER: Internal Server Error: org.jruby.exceptions.RaiseException: 
> (Exception) Hiera type mismatch: Got Hash when Array was expected enable 
> lookup using key '2'
> 
> 
> 
> I've tried escaping with backslash, singlequoting, etc, but no luck..
> 
> 
> Any ideas?

In fact, it's currently impossible in hiera:

    https://tickets.puppetlabs.com/browse/PUP-5990

According to the ticket, it should be solved in the next Puppet version,
ie Puppet 4.4.1.

Regards.
François Lafont

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/56EB97AB.4050003%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to