Issue #22533 has been updated by Andrew Parker.

Target version deleted (3.3.1)

I just tried this out on the Centos 6.4 VM. This was using the packages from 
the Puppet Labs yum repo.

<pre>
[root@localhost ~]# puppet --version
3.3.0
[root@localhost ~]# facter --version
1.7.3
[root@localhost ~]# ls /etc/facter/facts.d
ls: cannot access /etc/facter/facts.d: No such file or directory
[root@localhost ~]# mkdir -p /etc/facter/facts.d
[root@localhost ~]# echo "testfact=testvalue" > /etc/facter/facts.d/testing.txt
[root@localhost ~]# facter testfact
testvalue
[root@localhost ~]# puppet apply -e 'notice($testfact)'
Notice: Scope(Class[main]): testvalue
Notice: Compiled catalog for localhost.delivery.puppetlabs.net in environment 
production in 0.03 seconds
Notice: Finished catalog run in 0.02 seconds
[root@localhost ~]# ls -l /etc/facter/facts.d/
total 4
-rw-r--r-- 1 root root 19 Sep 13 22:58 testing.txt
[root@localhost ~]# echo "somefact=somevalue" > /etc/facter/facts.d/testfact.txt
[root@localhost ~]# echo 'notify { $somefact: }' > notify.pp
[root@localhost ~]# puppet apply notify.pp
Notice: Compiled catalog for localhost.delivery.puppetlabs.net in environment 
production in 0.03 seconds
Notice: somevalue
Notice: /Stage[main]//Notify[somevalue]/message: defined 'message' as 
'somevalue'
Notice: Finished catalog run in 0.03 seconds
</pre>

David, do you also get this problem if you use an older version of puppet? 
Puppet 3.2.4, for instance?

I'm going to remove the 3.3.1 target since I can't reproduce it. Once I can 
reproduce the problem we can figure out a target version at that point.

----------------------------------------
Bug #22533: facter 1.7.3/puppet 3.3.0 custom facts not available in puppet
https://projects.puppetlabs.com/issues/22533#change-97512

* Author: David Thompson
* Status: Needs More Information
* Priority: Normal
* Assignee: David Thompson
* Category: facter
* Target version: 
* Affected Puppet version: 3.3.0
* Keywords: 
* Branch: 
----------------------------------------
Custom facts read in from /etc/facter/facts.d/* files show up in facter, but 
not in puppet.  Example:

<pre>
# rpm -q facter puppet
facter-1.7.3-1.el6.x86_64
puppet-3.3.0-1.el6.noarch
# cat /etc/facter/facts.d/testfact.txt
somefact=somevalue
# facter -p somefact
somevalue
# cat /tmp/notify.pp
  notify { $somefact: }
# puppet apply /tmp/notify.pp
Notice: undef
Notice: /Stage[main]//Notify[undef]/message: defined 'message' as 'undef'
Notice: Finished catalog run in 0.26 seconds
</pre>


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to