[Puppet Users] Help with customer fact

Greg Coit
Wed, 04 Sep 2013 20:54:00 -0000

Hello,

I''ve setup a puppet master server and a couple of clients for testing
purposes.  Everything''s going pretty well but I''m having
trouble with
creating a custom fact.

I''m using the open source version of puppet on Centos 6.4.  In the file
/etc/puppet/modules/linux/lib/facter/ulimit.rb, I have the following:

Facter.add("ulimit") do
  confine :kernel => "Linux"
  setcode do
    Facter::Util::Resolution.exec("ulimit -n")
  end
end

The module linux is a custom one that I use as a profile.  Nowhere in the
module is the new fact mentioned (which might be the issue???)

On the clients, I run `facter --debug --puppet ulimit` and get:

Relative directory ./facter removed from search path.
value for ulimit is still nil

Any idea what''s causing the issue?

Thanks!

Greg