安装 puppetlabs/apt 失败并显示“302 Found”
Installing puppetlabs/apt fails with '302 Found'
所以我有一个 vagrant / puppet 设置用于我的项目*并且是 运行 Ubuntu 14.04。它只是坏了,没有改变任何东西。 puppet module install puppetlabs-apt
VM 内部失败并显示以下行:
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.
*Link: https://github.com/dwalldorf/owTracker
vagrant up
/ vagrant ssh
和 puppet module install puppetlabs-apt
https://forge.puppetlabs.com/puppetlabs/apt redirect to 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
这应该是固定的。您可以查看 FORGE-327 了解更多信息
所以我有一个 vagrant / puppet 设置用于我的项目*并且是 运行 Ubuntu 14.04。它只是坏了,没有改变任何东西。 puppet module install puppetlabs-apt
VM 内部失败并显示以下行:
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.
*Link: https://github.com/dwalldorf/owTracker
vagrant up
/ vagrant ssh
和 puppet module install puppetlabs-apt
https://forge.puppetlabs.com/puppetlabs/apt redirect to 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
这应该是固定的。您可以查看 FORGE-327 了解更多信息