0

因此,我为我的项目* 设置了一个 vagrant / puppet 并在其上运行 Ubuntu 14.04。它只是坏了,没有改变任何东西。puppet module install puppetlabs-aptVM 内部失败并显示以下行:

Error: Could not execute operation for 'puppetlabs/apt'
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.

我使用这个模块已经有一段时间了,它似乎无缘无故停止了工作。任何建议表示赞赏。

-- 编辑:用 --debug 回答问题并没有多大帮助我猜

 Notice: Preparing to install into /home/vagrant/.puppet/modules ...
 Notice: Created target directory /home/vagrant/.puppet/modules
 Notice: Downloading from https://forge.puppetlabs.com ...
 Error: Could not execute operation for 'puppetlabs/apt'
 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.

*链接:https vagrant up : //github.com/dwalldorf/owTracker/vagrant sshpuppet module install puppetlabs-apt

4

2 回答 2

1

https://forge.puppetlabs.com/puppetlabs/apt重定向到https://forge.puppet.com/puppetlabs/apt

您可以通过附加来强制它使用正确的锻造,--module_repository https://forge.puppet.com/这样它就会变成

puppet module install puppetlabs-apt --module_repository https://forge.puppet.com/

首先不确定为什么要从https://forge.puppetlabs.com下载,你可以检查你的puppet.conf

于 2016-06-18T07:48:37.377 回答
1

这应该是固定的。您可以查看FORGE-327了解更多信息

于 2016-06-27T20:44:20.220 回答