Both %{module_name} and %{calling_class} are going away - you cannot use
them when you are switching from legacy hiera 3 style hiera.yaml to
hiera 5 style hiera.yaml. Support for those variables will be removed in
Puppet 6.0.0 where hiera 3 backwards compatibility will be dropped (at
least that is what we think now, but it depends on several factors).
The main problem with interpolation of those "dynamic values" into paths
is that the value for a given key changes during the cause of the
compilation.
This creates a performance problem (all caches have to be evicted), and
it makes it a lot harder to debug since the value of a key - say x::y is
different depending on where it is obtained. Such designs should be
avoided as they are confusing and hard to maintain.
There are several new mechanisms in hiera 5 that can be used for various
purposes - hard to say exactly what you would be using as it depends on
what you are trying to achieve with your current design (why is it there
in the first place, who gets to change what were, how to you review and
do QA on data, etc. etc).
Best,
- henrik
> --
> 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...@googlegroups.com
> <mailto:
puppet-users...@googlegroups.com>.
> <
https://groups.google.com/d/msgid/puppet-users/8d142857-c985-4902-9346-aaeb577dc2e6%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/