chef cookbook fails on ohai undefined method `[]' for nil:NilClass
问题 I'm working on a chef cookbook to set up a vanilla ubuntu 12.04.2 with nginx postgresql and unicorn on my vagrant box, but I'm getting into troubles with nginx, there's an exception undefined method `[]' for nil:NilClass when installing it that seem to relate to ohai configuration. I've posted all I have here: https://github.com/DonGiulio/mychef here's the output from chef-solo: Starting Chef Client, version 11.4.0 Compiling Cookbooks... =======================================================