如何使用厨师在stream浪狗箱上设置综合build设者环境?

我需要一个用于构buildpython cli包的综合构build器框。

我想在这个stream浪者箱子上使用这本食谱

我以root身份运行它,因为omnibus安装程序需要使用/ opt中的数据来检查某些内容

我的vagrantfile看起来像这样:

# -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure(2) do |config| config.vm.box = "centos65opscode" # config.vm.provision "chef_solo" do |chef| # chef.add_recipe "omnibus" # end config.librarian_chef.cheffile_dir = "chef" config.vm.provision :chef_solo do |chef| chef.cookbooks_path = "chef/cookbooks" chef.add_recipe "omnibus" end end 

由于stream浪者的图书pipe理员厨师插件似乎没有做任何事情我手动添加所有的依赖关系:

我得到这个错误:

 ==> default: NameError ==> default: --------- ==> default: uninitialized constant Chef::Sugar::DSL ==> default: ==> default: Cookbook Trace: ==> default: --------------- ==> default: /tmp/vagrant-chef/745d120a7b8f9ecb5d8e9f185062c794/cookbooks/languages/libraries/_helper.rb:31:in `<module:Helper>' ==> default: /tmp/vagrant-chef/745d120a7b8f9ecb5d8e9f185062c794/cookbooks/languages/libraries/_helper.rb:30:in `<module:Languages>' ==> default: /tmp/vagrant-chef/745d120a7b8f9ecb5d8e9f185062c794/cookbooks/languages/libraries/_helper.rb:29:in `<top (required)>' ==> default: Relevant File Content: ==> default: ---------------------- ==> default: /tmp/vagrant-chef/745d120a7b8f9ecb5d8e9f185062c794/cookbooks/languages/libraries/_helper.rb: ==> default: ==> default: 24: rescue LoadError ==> default: 25: Chef::Log.warn 'chef-sugar gem could not be loaded.' ==> default: 26: end ==> default: 27: ==> default: 28: # Various code vendored from omnibus cookbook ==> default: 29: module Languages ==> default: 30: module Helper ==> default: 31>> include Chef::Sugar::DSL if Chef.const_defined?('Sugar') ==> default: 32: ==> default: 33: # ==> default: 34: # Performs a `File.join` but ensures all forward slashes are replaced ==> default: 35: # by backward slashes. ==> default: 36: # ==> default: 37: # @return [String] ==> default: 38: # ==> default: 39: def windows_safe_path_join(*args) ==> default: 40: ::File.join(args).gsub(::File::SEPARATOR, ::File::ALT_SEPARATOR)