[chef] Chef Solo Cookbook Path


Chronological Thread 
  • From: Douglas Garstang < >
  • To:
  • Subject: [chef] Chef Solo Cookbook Path
  • Date: Mon, 9 Feb 2015 11:35:40 -0800

I was trying to write a recipe to configure someone's chef client with chef-solo. The solo.rb has:

cookbook_path "/home/doug/slice-chef-setup"

That's about the only thing that seems to work. These don't:

cookbook_path "slice-chef-setup"
cookbook_path "~/slice-chef-setup"
cookbook_path "." (that really confused chef, as "." appears to be somewhere else.

Running with:
chef-solo -c solo.rb -o "recipe[slice-chef-setup::default]" -j doug.json

I've also tried removing the cookbook path altogether. No help. I'd like to make this portable (with real current working directory from users perspective). How do I do this?

It would also be nice if I could supply the contents of doug.json on the command line. In a file also isn't very porable.

Doug




Archive powered by MHonArc 2.6.16.

§