Hi, basically you need to mimic the behavior of Puppet's own hiera() function to talk to hiera's ruby API, see https://github.com/puppetlabs/puppet/blob/master/lib/puppet/parser/functions/hiera.rb#L23
Perhaps even more interesting, the way the hiera CLI tool uses the API, https://github.com/puppetlabs/hiera/blob/master/bin/hiera#L249 HTH, Felix On 04/14/2014 01:55 PM, Dirk Heinrichs wrote: > Hi, > > is it possible to do Hiera lookups inside Ruby code, for example in a > provider for a new resource type? If so, how? > > Thanks... > > Dirk -- 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/534BD45A.6070500%40alumni.tu-berlin.de. For more options, visit https://groups.google.com/d/optout.