OK. got it to work. created directory /var/lib/puppet/lib/puppet/parser/functions
copied the hiera files there: cp /usr/lib64/ruby/gems/1.8/gems/hiera-puppet-0.3.0/lib/puppet/parser/ functions/* /var/lib/puppet/lib/puppet/parser/functions/ restarted puppetmaster and it seems to work now. Thanks! On Mar 14, 12:32 pm, Markus Falb <markus.f...@fasel.at> wrote: > On 14.3.2012 18:50, psychobyte wrote: > > > I'm trying to use standard hiera on puppet (gentoo). I simply did > > > # gem install hiera > > > Then setup /etc/hiera.yaml > > > When i call the hiera() function in puppet i get > > > "Error 400 on SERVER: Unknown function hiera at /data/puppe/manifests/ > > site.pp:27" > > > Is there a step that I'm missing? > > Yes. Copy the puppet function to puppets libdir. > It is mentioned in the READMEhttps://github.com/puppetlabs/hiera-puppet > > -- > Kind Regards, Markus Falb > > signature.asc > < 1KViewDownload -- 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.