Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Critical
-
Resolution: Fixed
-
Component/s: None
-
Labels:None
-
Environment:
Puppet 3.4.3
-
Template:customfield_10700 137802
Description
Puppet versions prior to 3.6.0 use API v1 at https://forge.puppetlabs.com/v1/, but this breaks since the site began redirecting to forge.puppet.com. The installation commands fail with:
# puppet module install puppetlabs/ntp
|
Notice: Preparing to install into /etc/puppet/modules ...
|
Notice: Downloading from https://forge.puppetlabs.com ...
|
Error: Could not execute operation for 'puppetlabs/ntp'
|
The server being queried was https://forge.puppetlabs.com
|
The HTTP response we received was '302 Found'
|
Check the author and module names are correct.
|
Passing --module_repository https://forge.puppet.com/ is a workaround.
If URLs beneath /api/v1 (such as https://forge.puppetlabs.com/api/v1/releases.json?module=puppetlabs-ntp) didn't redirect, this would fix the issue for these old clients.
This seems to be affecting a few users:
- http://stackoverflow.com/questions/37892134/installing-puppetlabs-apt-fails-with-302-found
- http://stackoverflow.com/questions/37892435/cant-install-puppet-modules-302-found-win-8-1-64-running-ubuntu-trusty-64-i
I've also submitted a bug to Ubuntu as 14.04's shipped Puppet version is 3.4.3 and is affected by this issue: https://bugs.launchpad.net/ubuntu/+source/puppet/+bug/1594316