Puppet does automatic lookups in hiera for data in variables, or you can do the call explicitly by calling the 'hiera' funciton. Just because it is in init.pp doesn't make it any different than any other puppet file.
Unless I misunderstand, you would call it like so: $my_variable = hiera('my_hiera_data') At least I do explicit calls to hiera so that there is no question as to where the value of the variable comes from, but you may do it differently. I hope this answers your question. Drew On Wednesday, February 25, 2015 at 4:09:34 PM UTC-5, justin parker wrote: > > Hello everyone, > Is it possible to get a hiera response to variable being called from a > module's init.pp file? > -- 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/5274e6e8-8f9d-461d-b1f8-3941a63b8c69%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.