[chef-dev] Re: Use Gem version of Chef with Test Kitchen

Chronological Thread 
  • From: Cameron Cope < >
  • To: Ryan Hass < >
  • Cc: " " < >
  • Subject: [chef-dev] Re: Use Gem version of Chef with Test Kitchen
  • Date: Mon, 24 Aug 2015 20:57:50 -0700

Try setting ruby_bindir: '/path/to/folder/containing/chef/client' in your provisioner section to tell it where to find the chef binary. I haven't tested it with chef but I would expect it works (seems to be a setting in the main testkitchen code).

On Mon, Aug 24, 2015 at 12:12 AM, Ryan Hass < " target="_blank"> > wrote:
I seem to have come across an issue with Test Kitchen in which it seems to assume the location of the chef-client executable is in /opt/chef/bin/chef-client despite setting the provisioner value "chef_omnibus_root: false" - I dug around in the test-kitchen code a bit, but its not completely apparent to me how and where this path is getting set. Is there a way to override this?


-Ryan H.

Archive powered by MHonArc 2.6.16.