Windows – On a Windows system, where should I put the gemrc file so that Puppet can find it

puppetpuppet-agentrubygemswindowswindows-server-2012-r2

Running Puppet Enterprise 3.7.

The Agent machine is a Windows 2012 Server R2 box.

Question: Where do I put the gemrc file so that Puppet's internal ruby can find it?

On Linux, the place to put the file seems to be /opt/puppet/etc/gemrc.

The goal: instruct puppet to NOT look on rubygems.org for Gems, but instead look at our internal Gemserver.

Best Answer

I've put it in the user's (user that runs Puppet) home (%HOMEPATH%). This should be one of the paths RubyGems looks for the gemrc file.