Issue #3741 has been updated by Paul Nasrat.
Just to clarify is anyone seeing this behaviour *just* using facter cli (ie not
running under puppet)
I created a noddy fact and run
cat facts/test1.rb
require 'facter'
puts "loading test1"
Facter.add('test1') do
setcode do
"wibble"
end
end
FACTERLIB=$HOME/facts facter |grep test1
loading test1
test1 => wibble
ACTERLIB=$HOME/facts irb
>> require 'facter'
=> true
>> Facter.loadfacts
loading test1
=> true
>> Facter.loadfacts
=> nil
>> Facter.loadfacts
=> nil
>> Facter[:test1].value
=> "wibble"
----------------------------------------
Bug #3741: Custom facts loaded multiple times
http://projects.puppetlabs.com/issues/3741
Author: Dan Carley
Status: Accepted
Priority: Normal
Assigned to:
Category:
Target version:
Affected 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.