I asked almost the same question on ask puppet https://ask.puppetlabs.com/question/1295/getting-hiera-data-into-my-erb-template/
On Sun, Oct 11, 2015 at 10:37 AM, Vikas Kumar <vikas...@gmail.com> wrote: > Hello Everyone, > > I have a YAML file which I am using to generate facts for one of my puppet > agents. > > # facter -p box32.interfaces_ipv4.eth0.bootproto > static > # > > > > This works fine, but I am not sure how to make this work in erb templates. > I've tried few options in vain. > > Forgive my ignorance on this. Thanks. > > Regards, > Vikas > > -- > 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/1a0698c9-b269-4381-aeae-ee4cd7c524e3%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/1a0698c9-b269-4381-aeae-ee4cd7c524e3%40googlegroups.com?utm_medium=email&utm_source=footer> > . > 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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAHu%2B3OzgSzmQycXgkkYrF7Z2uRAZUBtDgHeoN%3DTB6HhFFAxZ1g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.