On 03/07/2013 06:31 PM, GregC wrote:
>
> How does Hiera know which hiera.rb to call. I have serveral hiera rb
> scripts here. How can I know which one Hiera will actually use?
>
> /etc/puppet/modules/hiera-puppet/lib/puppet/parser/functions/hiera.rb
> /usr/lib/ruby/gems/1.8/gems/hiera-0.3.0/lib/hiera.rb
> /usr/lib/ruby/gems/1.8/gems/hiera-puppet-0.3.0/lib/puppet/parser/functions/hiera.rb
In your case, I think the first path will be used.
But, you shouldn't really have separate puppet module, if the hiera
installation already brings one. You should do the following:
rm -rfv /etc/puppet/modules/hiera-puppet
ln -s /usr/lib/ruby/gems/1.8/gems/hiera-puppet-0.3.0 \
/etc/puppet/modules/hiera
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.