Ask Your Question

Should any Puppet Agent files in Windows be in a user home directory?

asked 2014-02-19 16:06:28 -0600

sav2880 gravatar image

I've been attempting to run Puppet Enterprise and the respective Agent under Windows 2012 R2 today. I've done the install of the agent via MSI from an elevated command line, and every time I run either "Puppet Agent", or "Command Prompt With Puppet", it seems to want to look at C:\ProgramData\PuppetLabs for the files. This looks correct to me, but I can't get the certificate file to create and match up with the Puppet Master server (running on CentOS).

I also seem to run into some files ending up in my home directory (C:\Users ... (more)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-02-20 11:14:00 -0600

joshc gravatar image

This is a result of the agent running as a service (as LocalSystem) which uses "C:\ProgramData\PuppetLabs", and not elevated, likely from Command Prompt with Puppet, which uses ~\.puppet.

If you want to run the agent from the command line, make sure you explicitly select "Run as Administrator" when opening the "Command Prompt with Puppet" as described

Note that the "Puppet Agent" shortcut will automatically elevate privileges.

Also, if UAC is disabled, then no explicit elevation is required, it just matters whether you are a member of the local Administrators group.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-02-19 16:06:28 -0600

Seen: 241 times

Last updated: Feb 20 '14