Sai_Emc
2013-Feb-22 18:29 UTC
[Puppet Users] gem packages installed directory on puppetmaster
What is the right path for ruby gems on puppet master. Scenario: I have installed hiera couple of months back. So the gem was installed under /opt/puppet/lib/gems/1.8/gems/hiera-0.3.0 /opt/puppet/lib/gems/1.8/gems/hiera-puppet-0.3.0 Later when I updated to new version of hiera then it installed (via gem install) under /opt/puppet/lib/gems/1.8/gems/hiera-1.1.1 /opt/puppet/lib/gems/1.8/gems/hiera-puppet-1.0.0 Puppet was always using the hiera under /opt/puppet/lib/gems/1.8/gems/, so I was unable to use new features of hiera I have uninstalled hiera-0.3.0 manually using gem sudo gem uninstall --install-dir /opt/puppet/lib/gems/1.8/ hiera Then Puppet failed to find hiera() function, so its always looking under /opt/puppet/lib/gems/1.8/gems. Later I installed hiera using gem and explicitly specified to install under /opt/puppet/lib/gems/1.8/gems Now puppet cannot even find hiera() err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not autoload hiera_include: no such file to load -- /opt/puppet/lib/site_ruby/1.8/puppet/parser/functions/hiera_include.rb at /etc/puppetlabs/puppet/environments/development/manifests/site.pp:46 on node Looks like some thing wrong with my gem path or my puppet load path is not. How do I come out of this? Any help greatly appreciated. Regards Sai. EMC -- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Sai_Emc
2013-Feb-22 19:02 UTC
[Puppet Users] Re: gem packages installed directory on puppetmaster
Forgot to add my environment details. Ubuntu12.04LTS, PE 2.7, Hiera1.2 Regards Sai. On Friday, February 22, 2013 1:29:45 PM UTC-5, Sai_Emc wrote:> What is the right path for ruby gems on puppet master. > > Scenario: > I have installed hiera couple of months back. So the gem was installed > under > > /opt/puppet/lib/gems/1.8/gems/hiera-0.3.0 > /opt/puppet/lib/gems/1.8/gems/hiera-puppet-0.3.0 > > Later when I updated to new version of hiera then it installed (via gem > install) under > > /opt/puppet/lib/gems/1.8/gems/hiera-1.1.1 > /opt/puppet/lib/gems/1.8/gems/hiera-puppet-1.0.0 > > Puppet was always using the hiera under /opt/puppet/lib/gems/1.8/gems/, so > I was unable to use new features of hiera > > I have uninstalled hiera-0.3.0 manually using gem > > > sudo gem uninstall --install-dir /opt/puppet/lib/gems/1.8/ hiera > > Then Puppet failed to find hiera() function, so its always looking under > /opt/puppet/lib/gems/1.8/gems. Later I installed hiera using gem and > explicitly specified to install under /opt/puppet/lib/gems/1.8/gems > > Now puppet cannot even find hiera() > > err: Could not retrieve catalog from remote server: Error 400 on SERVER: > Could not autoload hiera_include: no such file to load -- > /opt/puppet/lib/site_ruby/1.8/puppet/parser/functions/hiera_include.rb at > /etc/puppetlabs/puppet/environments/development/manifests/site.pp:46 on > node > > Looks like some thing wrong with my gem path or my puppet load path is > not. How do I come out of this? > > Any help greatly appreciated. > > Regards > > Sai. > > EMC > >-- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Felix Frank
2013-Feb-25 13:28 UTC
Re: [Puppet Users] gem packages installed directory on puppetmaster
Hi, I don''t really understand the problem. On 02/22/2013 07:29 PM, Sai_Emc wrote:> /opt/puppet/lib/gems/1.8/gems/hiera-0.3.0 > /opt/puppet/lib/gems/1.8/gems/hiera-puppet-0.3.0 > > Later when I updated to new version of hiera then it installed (via gem > install) under > > /opt/puppet/lib/gems/1.8/gems/hiera-1.1.1 > /opt/puppet/lib/gems/1.8/gems/hiera-puppet-1.0.0Are these not the same base directories? It''s not really clear why one would work and not the other.> /opt/puppet/lib/site_ruby/1.8/puppet/parser/functions/hiera_include.rbDo you have this file? Or is ruby looking for that? You may need to fix your RUBYLIB environment. Have you tried reinstalling the older hiera version. HTH, Felix -- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Sai_Emc
2013-Feb-25 14:41 UTC
Re: [Puppet Users] gem packages installed directory on puppetmaster
Felix , Thanks for your reply. Please see the below thread. I deleted this post, because my title was''nt clear. Not sure how it showed up again. Yes, I did removed old hiera and updated new one. Still no use. https://groups.google.com/forum/?hl=en&fromgroups#!topic/puppet-users/Fueb5cXA9Fg Regards Sai. On Monday, February 25, 2013 8:28:29 AM UTC-5, Felix.Frank wrote:> Hi, > > I don''t really understand the problem. > > On 02/22/2013 07:29 PM, Sai_Emc wrote: > > /opt/puppet/lib/gems/1.8/gems/hiera-0.3.0 > > /opt/puppet/lib/gems/1.8/gems/hiera-puppet-0.3.0 > > > > Later when I updated to new version of hiera then it installed (via gem > > install) under > > > > /opt/puppet/lib/gems/1.8/gems/hiera-1.1.1 > > /opt/puppet/lib/gems/1.8/gems/hiera-puppet-1.0.0 > > Are these not the same base directories? It''s not really clear why one > would work and not the other. > > > /opt/puppet/lib/site_ruby/1.8/puppet/parser/functions/hiera_include.rb > > Do you have this file? Or is ruby looking for that? > > You may need to fix your RUBYLIB environment. Have you tried > reinstalling the older hiera version. > > HTH, > Felix >-- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.