So I have a set of cookbooks/roles that are configured to work with vagrant. I am now in the process of deploying an application, and I want to run these identical cookbooks using chef-solo on my server. So I simply installed chef-solo(the same version that I am using with vagrant), and attempted to call the following command:
sudo chef-solo -c solo.rb -j roles/clusterflunk_dev.json
Unfortunately, the following error was generated:
[Fri, 27 Jul 2012 08:20:28 +0100] INFO: *** Chef 0.10.8 *** [Fri, 27 Jul 2012 08:20:29 +0100] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out [Fri, 27 Jul 2012 08:20:29 +0100] FATAL: NoMethodError: undefined method `delete' for # <Chef::Role:0x7f6848a05638>
I'm not sure how the same version of chef would yield different results, I'm obviously making a mistake somewhere. I'm using Ubuntu Server 10.10.