Worth noting that if you set this environment variable in one of your shell 
environment config files , like .bashrc, you would need to export it.

Like this 

export FACTERLIB=/var/lib/puppet/lib/facter

regards

Nick

On Monday, 3 October 2011 12:14:30 UTC+2, Stefan Schulte wrote:
>
> On Mon, Oct 03, 2011 at 11:00:18AM +0100, Jonathan Gazeley wrote:
> > Hi all,
> > 
> > I'm experiencing some difficulty getting custom facts to run. I've 
> > installed them on the puppetmaster in:
> > 
> > ${modulepath}/${module}/lib/facter/*.rb
> > 
> > and from there they appear to be copied properly onto the clients, where 
> > they end up in:
> > 
> > /var/lib/puppet/lib/facter/*.rb
> > 
> > On all clients, in puppet.log, the output of puppet-agent mentions 
> > "Loading facts" and seems to do the right thing. However, running facter 
> > on the client, the facts do not show up, even with --debug and with sudo.
> > 
> > On the puppetmaster, they do show up in facter output as expected.
> > 
> >   So what's going wrong? I'm running CentOS 6 and Puppet 2.6.6.
> > 
> > Thanks,
> > Jonathan
> > 
>
> I guess facter as a standalone executable doesn't look into
> /var/lib/puppet. Try running
>
>     FACTERLIB=/var/lib/puppet/lib/facter facter
>
> as described in the custom facts guide [1]
>
> [1] http://docs.puppetlabs.com/guides/custom_facts.html#an-example
>
> -Stefan
>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to