Vagrant chef调配失败,原因是:获取有关el的chef stable的信息

Vagrant chef调配失败,原因是:获取有关el的chef stable的信息,vagrant,chef-infra,Vagrant,Chef Infra,我用流浪汉和厨师提供虚拟机。虚拟机的basebox是一个定制的virtualbox basebox,我使用定制的Fedora 17操作系统从虚拟机创建。这可能不相关,但定制的basebox是从我们当地的Artifactory repo下载的,而不是从HashiCorp站点下载的 以下是该文件的主要部分: Vagrant.configure(2) do |config| config.vm.box = "GemBuildSystem-4.10" ... config.vm.provis

我用流浪汉和厨师提供虚拟机。虚拟机的basebox是一个定制的virtualbox basebox,我使用定制的Fedora 17操作系统从虚拟机创建。这可能不相关,但定制的basebox是从我们当地的Artifactory repo下载的,而不是从HashiCorp站点下载的

以下是该文件的主要部分:

Vagrant.configure(2) do |config|
  config.vm.box = "GemBuildSystem-4.10"
  ...
  config.vm.provision :chef_solo do |chef|
    #Fix for: http://stackoverflow.com/questions/37336477/chefzero-returning-404
      chef.channel = "stable"
      #chef.version = "12.10.24"
      ...
    end
end
当我运行命令“vagrant up--provision”时,我得到以下错误:

==> default: el 4 i386
==> default: Getting information for chef stable  for el...
==> default: downloading https://omnitruck-direct.chef.io/stable/chef/metadata?v=&p=el&pv=4&m=i386
==> default:   to file /tmp/install.sh.6206/metadata.txt
==> default: trying wget...
==> default: ERROR 404
==> default: Omnitruck artifact does not exist for version  on platform el
==> default: Either this means:
==> default:    - We do not support el
==> default:    - We do not have an artifact for
==> default: This is often the latter case due to running a prerelease or RC version of chef
==> default: or a gem version which was only pushed to rubygems and not omnitruck.
==> default: You may be able to set your knife[:bootstrap_version] to the most recent stable
==> default: release of Chef to fix this problem (or the most recent stable major version number).
==> default: In order to test the version parameter, adventurous users may take the Metadata URL
==> default: below and modify the '&v=<number>' parameter until you successfully get a URL that
==> default: does not 404 (e.g. via curl or wget).  You should be able to use '&v=11' or '&v=12'
==> default: succesfully.
==> default: If you cannot fix this problem by setting the bootstrap_version, it probably means
==> default: that el is not supported.
==> default: Metadata URL: https://omnitruck-direct.chef.io/stable/chef/metadata?v=&p=el&pv=4&m=i386
==>默认值:el 4 i386
==>默认设置:正在获取有关el的信息。。。
=>默认值:下载https://omnitruck-direct.chef.io/stable/chef/metadata?v=&p=el&pv=4&m=i386
==>默认值:到文件/tmp/install.sh.6206/metadata.txt
==>默认值:正在尝试wget。。。
==>默认值:错误404
==>默认值:平台el上的版本不存在Omnitrack工件
==>默认值:这意味着:
==>默认值:-我们不支持el
==>默认值:-我们没有用于的工件
==>默认值:这通常是后一种情况,因为运行了chef的预发行版或RC版本
==>默认值:或只推送到rubygems而不是Omnitrack的gem版本。
==>默认设置:您可以将刀[:bootstrap\u version]设置为最新的稳定状态
==>默认值:释放Chef以修复此问题(或最新稳定的主要版本号)。
==>默认值:为了测试版本参数,喜欢冒险的用户可以使用元数据URL
==>默认值:在下面输入并修改“&v=”参数,直到您成功获得
==>默认值:不使用404(例如,通过curl或wget)。您应该能够使用“&v=11”或“&v=12”
==>默认值:成功。
==>默认设置:如果您无法通过设置引导\u版本来解决此问题,则可能意味着
==>默认值:不支持el。
==>默认值:元数据URL:https://omnitruck-direct.chef.io/stable/chef/metadata?v=&p=el&pv=4&m=i386

我观察到的第一个问题是,服务器omnitruck-direct.chef.io不存在。应该是Omnitruchef.io。如何确定此服务器?我能做些什么来解决这个问题?TIA.

看起来,您正在为EL 4运行,chef不支持,因此不可用

 ==> default: el 4 i386
 ==> default: Getting information for chef stable  for el...
 ==> default: downloading https://omnitruck-direct.chef.io/stable/chef/metadata?v=&p=el&pv=4&m=i386
检查EL 6是否存在

以及同样存在的EL 5

主厨客户