I had an issue where "puppet module install" worked, but "puppet-code deploy" would not pull in Forge modules.
Between the Slack channel and opening a ticket, I got information and a workaround:
Unfortunately, PE 2019.2.0 and 2019.2.1 have a regression in r10k proxy handling that we just found the root cause of yesterday.
Downgrading the faraday gem should fix the problem.
Here are the commands:
/opt/puppetlabs/puppet/bin/gem install faraday -v 0.12.2
/opt/puppetlabs/puppet/bin/gem uninstall faraday -v 0.13.1
puppet resource service pe-puppetserver ensure=stopped
puppet resource service pe-puppetserver ensure=running
Then re-try the "puppet-code deploy"
And it worked !
So, I am sharing it with the Puppet Community