Issue #3741 has been updated by Mikael Fridh.

I had the same phenomenon until I moved the facter plugins to a subfolder in my 
modules:

Example:
mkdir modules/dell/lib/facter/dell
mv modules/dell/lib/facter/*.rb module/dell/lib/facter/dell/

So, by keeping /var/lib/puppet/lib/facter clean of facter scripts and _only_ 
having them in subfolders, the redundant loading seems to not take place:

# find /var/lib/puppet/lib/facter/
/var/lib/puppet/lib/facter/
/var/lib/puppet/lib/facter/dell
/var/lib/puppet/lib/facter/dell/srvadminpkgcount.rb
/var/lib/puppet/lib/facter/dell/warranty.rb

# puppet agent -vt
info: Retrieving plugin
info: Caching catalog for host
info: Applying configuration version '1321570636'
notice: Finished catalog run in 1.85 seconds

puppet 2.6.6
facter 1.6.1
----------------------------------------
Bug #3741: Custom facts loaded multiple times
https://projects.puppetlabs.com/issues/3741

Author: Dan Carley
Status: Requires CLA to be signed
Priority: Normal
Assignee: Ash Caire
Category: plug-ins
Target version: Telly
Affected Puppet version: 0.25.4
Keywords: 
Branch: 


As noted by some on puppet-users - 
http://groups.google.com/group/puppet-users/browse_thread/thread/f41cad70f62b9bf7

Puppet clients indicate that they are loading each custom fact more than once.
<pre>
info: Loading facts in layman_conf
info: Loading facts in portage_flags
info: Loading facts in portage_keyword
info: Loading facts in portage_profile
info: Loading facts in raidtype
[..]
info: Loading facts in layman_conf
info: Loading facts in portage_flags
info: Loading facts in portage_keyword
info: Loading facts in portage_profile
info: Loading facts in raidtype
[..]
</pre>

Some relevant settings from @puppet.conf@:
<pre>
vardir = /var/lib/puppet
pluginsync = true
factpath = $vardir/lib/facter
</pre>

Using versions:

* Puppet 0.25.4
* Facter 1.5.2


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

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

Reply via email to