Not directly. Hiera provides data to the server for use when compiling the
catalog. Providers run on the agent after the catalog has been compiled.

If you need to get to Hiera data, write your type/provider such that it
accepts a parameter, then look that up from Hiera and pass it in when you
declare a resource.

On Mon, Aug 1, 2022 at 12:06 PM Matthias K <matthiaskn...@gmail.com> wrote:

> Hi, is it possible to access hiera values within a custom provider?
>
> --
> 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/7b664134-0ed6-44d8-8054-b48f8de4e578n%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/7b664134-0ed6-44d8-8054-b48f8de4e578n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CACkW_L6OfeJ1HU3RRAJt%3DoyCPtiy1Vba%2BLxGZ6uXjoeq9%2BbkFQ%40mail.gmail.com.

Reply via email to