Facter is run on the clients. Does installing that gem on the clients fix the error?
Also, "require 'rubygems'" on the top of the file where you define your
facter.
--
Pietro Monteiro
Senior Developer
DECK Monitoring
115 W 8th Ave. Eugene, Oregon 97401
Office: 541-343-0110
www.deckmonitoring.com
That should be enough. You're going to have to start giving more info
you want more help. At the very least the gem name. Sometimes you
think you're requiring the gem correctly based on the gem name, but
the thing you need to require might not match the gem name exactly.
For example, there's an rspec-core gem, but you don't do "require
'rspec-core'", you do "require 'rspec/core'".
This really shouldn't be a facter issue, it's a ruby issue. Try just
putting the requires in an empty file and using ruby to run that. If
it works there and doesn't in the facter code, paste your code into a
gist so that people can see the whole thing.
Matt
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>
>
setcode do
setcode do
I've seen a problem similar to this, and with that problem, the puppet fact works just fine. So I'd test it in puppet and ignore the problem if puppet is fine.
IIRC the reason is that the fact doesn't live in a file called
<factname>.rb. Is this the case here?
Otherwise I second Patrick's notion: Ignore the commandline weirdness
and go ahead.
Regards,
Felix