Vagrant requires attributes in roles.json that break existing Chef project
问题 I have an existing chef-solo project to which I am trying to add vagrant support. I typically use knife to cook these recipes on EC2 servers using Ubuntu 10.04 AMIs published by Canonical. Vagrant requires that I add chef_type and json_class attributes to my working roles/*.json files, like this: { "name": "memcached", "chef_type": "role", "json_class": "Chef::Role", "run_list": ["base", "memcached"] } If I don't add these to the role definition file, then I get this next error. Presumably