The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

Bug #13668

undefined method `watch' for #<Object:0x10fb852a8 @operatingsystem="Darwin"

Added by James Turnbull over 2 years ago. Updated over 2 years ago.

Status:DuplicateStart date:04/06/2012
Priority:NormalDue date:
Assignee:Patrick Carlisle% Done:

0%

Category:testing
Target version:-
Keywords: Affected Facter version:
Branch:

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com

This issue is currently not available for export. If you are experiencing the issue described below, please file a new ticket in JIRA. Once a new ticket has been created, please add a link to it that points back to this Redmine ticket.


Description

OSX 10.7 Puppet: 2.7.12 Facter: 1.6.7

Puppet and Facter installed via gems.

./facter/install.rb:65: warning: already initialized constant PREREQS
./facter/install.rb:67: warning: already initialized constant InstallOptions
Error loading fact ./facter/spec/puppetlabs_spec_helper.rb no such file to load -- puppetlabs_spec/files
./facter/spec/spec_helper.rb:5: warning: already initialized constant SPECDIR
Error loading fact ./facter/spec/spec_helper.rb no such file to load -- puppetlabs_spec_helper
err: Could not create resources for managing Puppet's files and directories in sections [:main, :ssl]: undefined method `watch' for #

Related issues

Duplicates Facter - Bug #6955: Risk of malicious code execution Closed 04/04/2011

History

#1 Updated by Patrick Carlisle over 2 years ago

  • Status changed from Unreviewed to Investigating
  • Assignee set to Patrick Carlisle

#2 Updated by Patrick Carlisle over 2 years ago

This happens because you have the facter source checked out in your current directory. RUBYLIB contains . and facter searched for subdirectories named facter in RUBYLIB. It’s trying to load facter/spec/watchr.rb as a fact, which fails.

#3 Updated by James Turnbull over 2 years ago

Weird as I don’t have Facter checked out into that directory. Maybe it’s in RUBYLIB somewhere.

#4 Updated by Patrick Carlisle over 2 years ago

That is odd. The output you gave shows facts as being loaded relative to the current directory, e.g. Error loading fact ./facter/spec/puppetlabs_spec_helper.rb

So I guess I mean checked out into a subdirectory of the current directory, not the current directory itself.

#5 Updated by Patrick Carlisle over 2 years ago

  • Status changed from Investigating to Duplicate

This should be fixed by #6955

Also available in: Atom PDF