On 07/20/2010 10:30 AM, Daniel DeLeo wrote:
On Tue, Jul 20, 2010 at 9:24 AM,
On 07/20/2010 09:53 AM, Daniel DeLeo wrote:Oh, looking at your command-line invocation of chef-solo, it seems
There is no error. The cookbooks just never run. I'm using the exact
On Mon, Jul 19, 2010 at 6:19 PM,
What error are you getting? `Chef::Exceptions::RoleNotFound`?
On 07/19/2010 06:36 PM, consiliens wrote:
On 07/19/2010 12:07 PM, Daniel DeLeo wrote:
On Fri, Jul 16, 2010 at 1:01 PM,
Why does chef-solo require a key to generate a JSON
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
convert the role to JSON before using it, however--you should be
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.
I'm willing to fix them. Thank you for explaining how to use roles
I tried role_path and it's still not working. I'll update the wiki
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:
files on the Opscode platform without issue. Is setting node_name the
proper way to tell chef-solo which role to apply?
I'll add the debug info and see what happens.
like you need to also provide a JSON file with a run_list that
specifies which roles chef should use:
That worked. I'll update the wiki.
sudo chef-solo --config ./solo.rb --json-attributes ./run_list.json
$ cat run_list.json
It would be nice if there was a --ruby-attributes option. run_list.rb
could use the Ruby DSL.
Archive powered by MHonArc 2.6.16.