Thanks Brandon. Much better.Might as well throw my next question into this thread. Is there a way to display a block of text back to the console at the completion of the solo run, without the debug stuff prefixed to the front?
Doug.--On Mon, Feb 9, 2015 at 11:43 AM, Brandon Raabe < " target="_blank"> > wrote:If you want to do a relative path, you'll need to base it off of where the solo.rb file livesFor example if your solo.rb is in /home/doug/.chef/solo.rbcookbook_path File.join(File.expand_path('../../', __FILE__), 'slice-chef-setup')On Mon, Feb 9, 2015 at 12:35 PM, Douglas Garstang < " target="_blank"> > wrote:I was trying to write a recipe to configure someone's chef client with chef-solo. The solo.rb has:That's about the only thing that seems to work. These don't:
cookbook_path "/home/doug/slice-chef-setup"
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.jsonI'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.
DougRegards,
Douglas Garstang
http://www.linkedin.com/in/garstang
Email: " target="_blank">
Cell: +1-805-340-5627
Archive powered by MHonArc 2.6.16.