Hi,

I'm following
http://reductivelabs.com/trac/puppet/wiki/PluginsInModules in order to
use a custom fact.

My modules looks like:

# ls manifests/modules/network/
manifests  plugins
# ls manifests/modules/network/plugins/facter/primaryint.rb 
manifests/modules/network/plugins/facter/primaryint.rb

as is said in doc.

Then:

Turn on pluginsync and specify factpath, so that the facts dropped by 
pluginsync are loaded by Puppet:
[main]
pluginsync = true
factpath = $vardir/lib/facter

as it does not say if it's talking about master/client, I've set vars in
both hosts:
Master/client:

# grep . /etc/puppet/puppet.conf|grep -v "#"
[main]
    vardir = /var/lib/puppet
    logdir = /var/log/puppet
    rundir = /var/run/puppet
    ssldir = $vardir/ssl
        pluginsync = true
        factpath = $vardir/lib/facter
[puppetd]
    classfile = $vardir/classes.txt
    localconfig = $vardir/localconfig

Then I restart master and client but I can't see my own fact:

[EMAIL PROTECTED] ~]# facter primaryint
[EMAIL PROTECTED] ~]# 

it's copied in client /var/lib/puppet/lib/facter/primaryint.rb

But, if I export RUBYLIB to /var/lib/puppet/lib/, facter sees it:
[EMAIL PROTECTED] puppet]# export RUBYLIB=/var/lib/puppet/lib/
[EMAIL PROTECTED] puppet]# facter primaryint
eth0


So, am I missing any conf step? any other variable is needed?
# rpm -qa|grep puppet
puppet-0.24.5-1.el4.x86_64

TIA,
Arnau

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to