Re: [Puppet Users] Help with customer fact

Greg Coit
Wed, 04 Sep 2013 22:06:26 -0000

Benjamin,

That was it - thank you!!!!

Greg

On Wednesday, September 4, 2013 2:04:17 PM UTC-7, Ben Carrell
wrote:
>
> The ulimit command is a shell builtin, try using "/bin/bash -c ulimit
-n"
>
> --
> Benjamin Carrell
>
>
> On Wed, Sep 4, 2013 at 2:54 PM, Greg Coit <greg...@gmail.com
<javascript:>
> > wrote:
>
>> 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
>>
>>  --
>> 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...@googlegroups.com <javascript:>.
>> To post to this group, send email to
puppet...@googlegroups.com<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/puppet-users.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>