Hello
I'm using hiera with the http backend (as couchdb) which works for data
lookup, but I want to user data interpolation
(https://puppet.com/docs/puppet/5.0/hiera_interpolation.html).
At the moment I am trying to do a simple test of:
class foo (
$bar = lookup("some::path::var")
) {
notify { 'bar':
message => $bar
}
}
Couchdb:
{
"some::path::var": "%{::fqdn}"
}
But my notify output is always:
Notice: /Stage[main]/Foo::Notify[bar]/message:current_value absent, should
be %{::fqdn} (noop)
Any ideas why this isn't getting resolved as the fqdn fact?
--
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/4b4e30a5-f3ad-4996-b36e-a18185aa3adf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.