Vagrantfileでのchef.add_recipeの書き方

chef.add_recipe "cookbookname::recipename"
のように書きます。

こんな感じで。
  config.vm.provision :chef_solo do |chef|
     chef.cookbooks_path = "./cookbooks"
     chef.add_recipe "yum"
     chef.add_recipe "git::source"
     chef.json = {:git => {:version => "1.8.5" }}
  end
カテゴリ: