Okay, thanks! From reading changelogs in git it looked like it was intended to be supported. It might be worth mentioning in the release notes.
Anyway in my case i can work around with module data. thanks! -Ben On Fri, Feb 10, 2017 at 1:39 PM, Henrik Lindberg <[email protected] > wrote: > On 08/02/17 17:55, Ben Hines wrote: > >> Perhaps this is just a bug, but does %{calling_class} function with >> Hiera 5? I haven't been able to get it to function. Perhaps it has a >> new syntax? >> >> > It is deliberately not supported in the hiera 5 format. > > - henrik > > Notice it's blank: >> >> ==> test: Hierarchy entry "calling_class" >> ==> test: Path >> "/tmp/vagrant-puppet/environments/myenv/data/classes/.yaml" >> ==> test: Original path: "classes/%{calling_class}.yaml" >> ==> test: Path not found >> >> >> hiera.yaml looks like: (per the 'prerelease documention' :) >> >> >> version: 5 >> hierarchy: >> - name: "calling_class" >> path: classes/%{calling_class}.yaml >> >> defaults: >> datadir: data >> data_hash: yaml_data >> >> >> -Ben >> >> -- >> 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] >> <mailto:[email protected]>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/puppet-users/2083ae8f-5437 >> -43c3-8c40-075c3b7abf57%40googlegroups.com >> <https://groups.google.com/d/msgid/puppet-users/2083ae8f-543 >> 7-43c3-8c40-075c3b7abf57%40googlegroups.com?utm_medium=email >> &utm_source=footer>. >> For more options, visit https://groups.google.com/d/optout. >> > > > -- > > Visit my Blog "Puppet on the Edge" > http://puppet-on-the-edge.blogspot.se/ > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Puppet Users" group. > To unsubscribe from this topic, visit https://groups.google.com/d/to > pic/puppet-users/UYvmlCaOqLc/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ms > gid/puppet-users/8616db10-6e15-f71d-a999-c663d8d2bfe3%40puppet.com. > > For more options, visit https://groups.google.com/d/optout. > -- 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/CABGPr5m-s3MvwgrY-4yih4VSpMqnNq%3DcWnvW6EzJc2SRF%2BkGqw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
