Issue #7039 has been reported by Cody Robertson.
----------------------------------------
Bug #7039: Facter having issue handling multiple facts in a single file
https://projects.puppetlabs.com/issues/7039
Author: Cody Robertson
Status: Unreviewed
Priority: Normal
Assignee:
Category:
Target version: 1.5.9
Keywords:
Branch:
When declaring several facts in a single file Facter won't pick them up
properly:
<pre>
# test_facts.rb
Facter.add(:test_fact1) do
setcode do
"test fact 1"
end
end
Facter.add(:test_fact2) do
setcode do
"test fact 2"
end
end
</pre>
<pre>
root@slinky [~/facter]# facter --version
1.5.9
root@slinky [~/facter]# facter --puppet test_fact1
root@slinky [~/facter]# facter --puppet test_fact2
</pre>
It works as expected with 1.5.8:
<pre>
root@slinky [~/facter]# facter --version
1.5.8
root@slinky [~/facter]# facter --puppet test_fact1
test fact 1
root@slinky [~/facter]# facter --puppet test_fact2
test fact 2
</pre>
There appears to be some weird behavior across versions being reported on the
mailing list: https://groups.google.com/forum/#!topic/puppet-users/6jZUQofQDxk
. It appears to work in Puppet manifests just not when invoked locally on the
machine.
--
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.