On Tue, Jan 10, 2012 at 8:53 AM, Markus Falb <markus.f...@fasel.at> wrote:
> hi, > > 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) > -- > Kind Regards, Markus Falb > > -- 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.