现在我在我的Vagrantfile中有以下内容: config.vm.provision :chef_solo do |chef| chef.cookbooks_path = "cookbooks" chef.add_recipe "apt" chef.add_recipe "build-essential" chef.add_recipe "chef-redis::source" chef.add_recipe "openssl" chef.add_recipe "git" chef.add_recipe "postgresql::server" chef.add_recipe "postgresql::client" end 为了安装添加到我的recipe_list的软件,我需要在安装其他软件之前让VM发出apt-get更新 。 我的印象是,这是“合适”配方的特点之一 – 它会运行更新的第一件事情。 当我做一个stream浪汉的规定是: [Sat, 11 Feb 2012 22:20:03 -0800] INFO: *** Chef 0.10.2 *** [Sat, 11 Feb 2012 22:20:03 -0800] INFO: Setting the run_list to ["recipe[apt]", "recipe[build-essential]", "recipe[chef-redis::source]", "recipe[openssl]", […]