Closed nicklewis closed 5 years ago
ping @nicklewis, I had a few comments you were going to get back to
This doesn't solve the right problem (there are issues around loading the PS module, not just using cmd), so closing it to consider the solution more deeply.
Previously, we were using the default bolt.bat wrapper script generated by rubygems. That caused
bolt puppetfile install
to fail when run from cmd on windows, because it didn't have the necessary environment variables set to use our CA bundle and therefore it didn't trust the forge.We now install our own bolt.bat wrapper to set those environment variables, following the puppet.bat example from the puppet-agent package.