On Mon, Jul 19, 2010 at 6:19 PM,There is no error. The cookbooks just never run. I'm using the exact same files on the Opscode platform without issue. Is setting node_name the proper way to tell chef-solo which role to apply?
consiliens< >
wrote:
On 07/19/2010 06:36 PM, consiliens wrote:What error are you getting? `Chef::Exceptions::RoleNotFound`?
On 07/19/2010 12:07 PM, Daniel DeLeo wrote:
On Fri, Jul 16, 2010 at 1:01 PM,
consiliens< >
wrote:
Why does chef-solo require a key to generate a JSON representation of
a role
for use with chef-solo?
`rake roles` calls `knife role from file` which assumes you want to
upload the role to the server. With chef solo, you are not required to
convert the role to JSON before using it, however--you should be able
to just configure your `role_path` in solo.rb and run with it. I see
this is not documented on the roles page in the wiki, and the chef
solo page states that you have to convert to JSON first, which is
incorrect. I don't have time to fix these right now, but I'll make a
note to fix them as I'm able. If you're willing to fix them, that
would be greatly appreciated.
Dan DeLeo
I'm willing to fix them. Thank you for explaining how to use roles with
chef-solo.
I tried role_path and it's still not working. I'll update the wiki once it
works. Here's the code I'm using.
Unfortunately, there's not a lot of debug info to be had here, but if
you're willing to hack some into the code, here's where you'd do it:
http://github.com/opscode/chef/blob/5f8f81915cfa2bc60cfd5d0cb2899a1188d8731c/chef/lib/chef/role.rb#L253-267
HTH,
Dan DeLeo
Archive powered by MHonArc 2.6.16.