centosにchefでnginxを入れようとするとこける 現状cookbook作って $ knife cookbook create nginx -o cookbooks 設定 $ vi cookbooks/nginx/recipes/default.rb package "nginx" do action :install end $ vi localhost.json // localhost.json { "run_list" : [ "nginx" ] } $ vi solo.rb # solo.rb file_cache_path "/tmp/chef-solo" cookbook_path ["/home/vagrant/chef-repo/cookbooks"] 実行 $ sudo chef-solo -c solo.rb -j ./localhost.json Start