Public bug reported:

The "puppet module" command is now throwing errors when installing
modules from the Puppet Forge (https://forge.puppet.com), as it
redirects from puppetlabs.com to puppet.com.

# 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.

The command should install and unpack the module to
/etc/puppet/modules/ntp, but instead fails.

As a workaround you can add "--module_repository
https://forge.puppet.com/"; to the command.

This affects Puppet 3.4.3 on Ubuntu 14.04 (trusty), and any version
prior to 3.6.0 which uses the v1 API. Newer versions use the v3 API on
forgeapi.puppetlabs.com instead and are unaffected.

The package should probably be patched to change module_repository to
forge.puppet.com in lib/puppet/defaults.rb, or to use the v3 API
(https://tickets.puppetlabs.com/browse/PUP-2093 and probably others).

# lsb_release -rd
Description:    Ubuntu 14.04 LTS
Release:        14.04
# apt-cache policy puppet
puppet:
  Installed: 3.4.3-1ubuntu1.1
  Candidate: 3.4.3-1ubuntu1.1
  Version table:
 *** 3.4.3-1ubuntu1.1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     3.4.3-1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: puppet 3.4.3-1ubuntu1.1
ProcVersionSignature: Ubuntu 3.13.0-24.47-generic 3.13.9
Uname: Linux 3.13.0-24-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: amd64
Date: Mon Jun 20 10:19:25 2016
PackageArchitecture: all
ProcEnviron:
 TERM=screen-256color
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: puppet
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: puppet (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug trusty uec-images

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1594316

Title:
  HTTP response we received was '404 Not Found' when using "puppet
  module install"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/puppet/+bug/1594316/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to