2016-08-04 59 views
0

我有一个样品VagrantFile看起来像以下:流浪厨师提供特定的配方,而不是默认

Vagrant.configure("2") do |config| 
    config.vm.box = "bento/centos-6.7" 
    config.vm.provision :chef_solo do |chef| 
     chef.add_recipe "build-essential" 
    end 
end 

这成功地规定了盒子“建立必要的”使用默认的配方在build-essential\recipes\default.rb

我该如何在vagrant文​​件中指定它应该在该食谱中使用非默认配方,例如build-essential\recipes\customised_default.rb

回答

0

有点试验和错误(和阅读更多厨师文件)后:

chef.add_recipe "build-essential::customised_default"