Issue #18047 has been updated by Josh Cooper.

Just to be clear, this issue only occurs when not running puppet as an 
administrator. In 2.7.x, puppet's confdir defaulted to ~/.puppet, and puppet 
creates that directory when it starts up (since confdir is a FileSetting). In 
3.0.0, we changed confdir to `Dir::LOCAL_APPDATA/PuppetLabs/puppet`. Puppet 
will still attempt to create the confdir when it starts up, but that will fail 
because the parent PuppetLabs directory doesn't exist.

This is not an issue when running as an administrator, because in that case the 
MSI creates `Dir::COMMON_APPDATA/PuppetLabs/{facter,puppet}` directories. It's 
not practical for the installer to create PuppetLabs directories for each user, 
since a new user could be created after puppet is installed. So either we 
revert to 2.7.x behavior, or we modify puppet to create parent directories as 
needed.
----------------------------------------
Bug #18047: Puppet 3 doesn't run in non-elevated context on Windows
https://projects.puppetlabs.com/issues/18047#change-78506

Author: Josh Cooper
Status: Accepted
Priority: Normal
Assignee: 
Category: 
Target version: 3.0.2
Affected Puppet version: 3.0.0
Keywords: windows
Branch: 


Install puppet 3.0.x MSI. Start a puppet command prompt, not as an 
administrator. Try to run puppet, it will fail because the 
C:\Users\name\AppData\Local\PuppetLabs directory doesn't exist. Previously in 
2.7.x, we created puppet data's directory relative to the user's home 
directory, which always existed. And since the MSI can only create the 
PuppetLabs directory (as opposed to every user on the system), we fail to run. 
Either we need to go back to using ~/.puppet on windows or modify puppet (and 
likely facter) to create the directory if it's not present.


-- 
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 puppet-bugs@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-bugs+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to