On Tue, Jan 10, 2012 at 08:56, Dan Bode <d...@puppetlabs.com> wrote: > On Tue, Jan 10, 2012 at 8:53 AM, Markus Falb <markus.f...@fasel.at> wrote: >> >> hiera is working in my manifest but not within a template. >> >> x=<%= scope.function_hiera("x") %> >> >> err: Could not retrieve catalog from remote server: Error 400 on SERVER: >> Failed to parse template bla/blubb.conf.erb: undefined method >> `function_hiera' ... >> >> Is it supposed to used in a template and how? > > You may need to explicitly load the function: > Try adding the following Ruby code to your template: > Puppet::Parser::Functions.function(:hiera)
That shouldn't be the problem in 2.7.4 or later, so if you are running that version and see the same issue please file a bug report about this. Daniel -- ⎋ Puppet Labs Developer – http://puppetlabs.com ♲ Made with 100 percent post-consumer electrons -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.