I am trying to setup puppet for use with ldap. Following the page (http://www.reductivelabs.com/trac/puppet/wiki/LdapNodes ) I run ruby -rldap -e ''puts :installed'' with success, however ruby - rpuppet -e ''p Puppet.features.ldap?'' fails with ruby: no such file to load -- puppet (LoadError) I imagine that it is related to how I have things installed. I am running etch, installed the ruby package available as well as the libldap-ruby1.8 and libldap-ruby1.8 packages. I installed facter and puppet via the gem command. Do I have a problem with environment variables or is it something else? Chris --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
On Apr 10, 2008, at 1:59 PM, Chris Blumentritt wrote:> I am trying to setup puppet for use with ldap. Following the page (http://www.reductivelabs.com/trac/puppet/wiki/LdapNodes > ) I run ruby -rldap -e ''puts :installed'' with success, however ruby - > rpuppet -e ''p Puppet.features.ldap?'' fails with ruby: no such file to > load -- puppet (LoadError) > > > I imagine that it is related to how I have things installed. I am > running etch, installed the ruby package available as well as the > libldap-ruby1.8 and libldap-ruby1.8 packages. I installed facter and > puppet via the gem command. Do I have a problem with environment > variables or is it something else?I expect you have two ruby binaries, and only one knows how to find Puppet. -- The ships hung in the sky in much the same way that bricks don''t. -- Douglas Adams --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
On Apr 10, 2008, at 2:33 PM, Luke Kanies wrote:> > On Apr 10, 2008, at 1:59 PM, Chris Blumentritt wrote: > >> I am trying to setup puppet for use with ldap. Following the page (http://www.reductivelabs.com/trac/puppet/wiki/LdapNodes >> ) I run ruby -rldap -e ''puts :installed'' with success, however ruby - >> rpuppet -e ''p Puppet.features.ldap?'' fails with ruby: no such file to >> load -- puppet (LoadError) >> >> >> I imagine that it is related to how I have things installed. I am >> running etch, installed the ruby package available as well as the >> libldap-ruby1.8 and libldap-ruby1.8 packages. I installed facter and >> puppet via the gem command. Do I have a problem with environment >> variables or is it something else? > > I expect you have two ruby binaries, and only one knows how to find > Puppet. >I do not believe this to be the case. This machine is a fresh install of etch that I started with. To be sure the, I ran the following: puppetmaster:~# find / -name ruby /usr/share/doc/ruby /usr/lib/ruby /usr/bin/ruby After much digging I thought I had it with the following which I had not done export RUBYOPT=rubygems Alas, that did not solve the problem. The following commands also fail, however if done on a system that has the puppet debian packages installed they succeed. puppetmaster:~# ruby -rfacter -e ''puts :installed'' ruby: no such file to load -- facter (LoadError) puppetmaster:~# ruby -rpuppet -e ''puts :installed'' ruby: no such file to load -- puppet (LoadError) Chris> -- > The ships hung in the sky in much the same way that bricks don''t. > -- Douglas Adams > --------------------------------------------------------------------- > Luke Kanies | http://reductivelabs.com | http://madstop.com >--~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
On Apr 10, 2008, at 5:23 PM, Chris Blumentritt wrote:> I do not believe this to be the case. This machine is a fresh install > of etch that I started with. To be sure the, I ran the following: > > puppetmaster:~# find / -name ruby > /usr/share/doc/ruby > /usr/lib/ruby > /usr/bin/ruby > > After much digging I thought I had it with the following which I had > not done > > export RUBYOPT=rubygems > > Alas, that did not solve the problem. > > The following commands also fail, however if done on a system that has > the puppet debian packages installed they succeed. > > puppetmaster:~# ruby -rfacter -e ''puts :installed'' > ruby: no such file to load -- facter (LoadError) > > puppetmaster:~# ruby -rpuppet -e ''puts :installed'' > ruby: no such file to load -- puppet (LoadError)It sounds like you don''t even have Puppet installed...? -- I had a linguistics professor who said that it''s man''s ability to use language that makes him the dominant species on the planet. That may be. But I think there''s one other thing that separates us from animals. We aren''t afraid of vacuum cleaners. --Jeff Stilson --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
On Apr 10, 2008, at 10:17 PM, Luke Kanies wrote:>> >> The following commands also fail, however if done on a system that >> has >> the puppet debian packages installed they succeed. >> >> puppetmaster:~# ruby -rfacter -e ''puts :installed'' >> ruby: no such file to load -- facter (LoadError) >> >> puppetmaster:~# ruby -rpuppet -e ''puts :installed'' >> ruby: no such file to load -- puppet (LoadError) > > > It sounds like you don''t even have Puppet installed...?I thought that very thing but just to be sure: puppetmaster:~# gem install puppet Need to update 18 gems from http://gems.rubyforge.org .................. complete Successfully installed puppet-0.24.4 Installing ri documentation for puppet-0.24.4... Installing RDoc documentation for puppet-0.24.4... Could not find main page README Could not find main page README Could not find main page README Could not find main page README puppetmaster:~# ruby -rpuppet -e ''puts :installed'' ruby: no such file to load -- puppet (LoadError) I havent really started configuring since I have been fixated on this but running puppetd will output errors (becauses it is unconfigured) and the following is the output when running an unconfigured puppetmasterd. puppetmaster:~# /var/lib/gems/1.8/bin/puppetmasterd Could not configure for running; got 4 failure(s) This is all very strange. Chris --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
On Apr 11, 2008, at 11:20 AM, Chris Blumentritt wrote:>> >> It sounds like you don''t even have Puppet installed...? > > I thought that very thing but just to be sure: > > puppetmaster:~# gem install puppet > Need to update 18 gems from http://gems.rubyforge.org > .................. > complete > Successfully installed puppet-0.24.4 > Installing ri documentation for puppet-0.24.4... > Installing RDoc documentation for puppet-0.24.4... > Could not find main page README > Could not find main page README > Could not find main page README > Could not find main page README > puppetmaster:~# ruby -rpuppet -e ''puts :installed'' > ruby: no such file to load -- puppet (LoadError)Rubygems are stupid, stupid, stupid. Try adding a -rubygems to your command.> > I havent really started configuring since I have been fixated on this > but running puppetd will output errors (becauses it is unconfigured) > and the following is the output when running an unconfigured > puppetmasterd. > > puppetmaster:~# /var/lib/gems/1.8/bin/puppetmasterd > Could not configure for running; got 4 failure(s) > > This is all very strange.Try running with --debug --trace --no-daemonize? -- One of the Ten Commandments for Technicians: (7) Work thou not on energized equipment, for if thou dost, thy fellow workers will surely buy beers for thy widow and console her in other ways. --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---