On 03/18/2016 12:29 AM, Jakov Sosic wrote:
Hi guys,
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?
Even this is causing problems:
$ puppet apply -e 'notify { $::networking['interfaces']['bond0.2']['ip']: }'
Error: Could not parse for environment production: Syntax error at '2'
at line 1:42 on node xxx
--
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/56EB4F54.3000904%40gmail.com.
For more options, visit https://groups.google.com/d/optout.