Issue #17875 has been updated by Lee Lowder.

This is actually not a file permissions issue but due to the fact that root 
uses different $confdir (/etc/puppet or /etc/puppetlabs/puppet), $vardir 
(/var/lib/puppet) than non root (~/.puppet and ~/.puppet/var) as well as a few 
other config paths being different.

The -p option causes facter to load aspects of puppet, which then get 
configured differently based on what user is running facter.

Custom facts can still be used in PE just the same as they can be used in OS, 
but may require root access when used on the command line, depending on the 
specific code paths involved.

>From what I can tell, this is not a bug but is intended behavior.

One workaround if you want to be able to access the puppet facts without being 
root would be to setup a symlink between ~/.puppet and root's $confdir, as well 
as ~/.puppet/var and root's $vardir.


----------------------------------------
Bug #17875: Custom Facts only viewable by root user (commercial version)
https://projects.puppetlabs.com/issues/17875#change-82553

Author: Evan Pierce
Status: Unreviewed
Priority: High
Assignee: Matthaus Owens
Category: 
Target version: 
Keywords: 
Branch: 
Affected Facter version: 


Despite the files hosting facts being given readable permissions, only root 
users can access facter -p facts (such as 'pe_version').  Regular facter (not 
-p) facts can be reached by non-root users (such as 'puppetversion').  Changing 
this will allow the use of custom facts in PE.


-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to