Issue #3741 has been updated by Ash Caire.
I've done some debugging, and for lack of experience to better present the
information to the powers that be, I present you a diff of the source code that
appears to fix the issue for me:
<pre>
ash@acaire-laptop:~/sandbox/puppetcode/lib/puppet/indirector/facts$ git diff
diff --git a/lib/puppet/indirector/facts/facter.rb
b/lib/puppet/indirector/facts/facter.rb
index ab7378a..0deff7e 100644
--- a/lib/puppet/indirector/facts/facter.rb
+++ b/lib/puppet/indirector/facts/facter.rb
@@ -14,7 +14,8 @@ class Puppet::Node::Facts::Facter < Puppet::Indirector::Code
Dir.glob("#{d}/*/#{subdirectory}/facter")
end
end.flatten
- dirs = module_fact_dirs + Puppet[:factpath].split(":")
+ dirs = module_fact_dirs #removed above because value returned as
/var/lib/puppet/lib/facter
+ #this fixed our puppetmaster, is this because i'm
using storeconfigs?
x = dirs.each do |dir|
load_facts_in_dir(dir)
end
@@ -59,7 +60,7 @@ class Puppet::Node::Facts::Facter < Puppet::Indirector::Code
def initialize(*args)
super
- self.class.load_fact_plugins
+ #removing this entire line fixed our nodes - Is it necessary?
end
def destroy(facts)
</pre>
Hope this helps?
----------------------------------------
Bug #3741: Custom facts loaded multiple times
https://projects.puppetlabs.com/issues/3741
Author: Dan Carley
Status: Accepted
Priority: Normal
Assignee:
Category:
Target version:
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.