所以我为我的项目设置了一个vagrant / puppet设置*并且正在运行Ubuntu 14.04。它刚刚破裂,没有改变任何东西。 VM内的puppet module install puppetlabs-apt
失败,并显示以下行:
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://github.com/dwalldorf/owTracker
vagrant up
/ vagrant ssh
和puppet module install puppetlabs-apt
答案 0 :(得分: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
答案 1 :(得分:1)
这应该是固定的。您可以查看FORGE-327以获取更多信息