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

Chronological Thread 
  • From: Jared Everett < >
  • To: Ryan Hass < >
  • Cc:
  • Subject: [chef-dev] Re: Use Gem version of Chef with Test Kitchen
  • Date: Mon, 24 Aug 2015 22:05:50 -0600

Cameron is correct.  This is taken from one of our .kitchen.yml files because it is needed when we test with SmartOS:

  - name: smartos-es
      joyent_image_id: 8b05ccbe-0890-11e5-8d30-57386d1d5482
      joyent_flavor_id: c2-r2-d25
        - fe7ee82c-086d-4bc0-8564-4ac3a8f773cb
      ruby_bindir: '/opt/local/bin'
      ruby_bindir: '/opt/local/bin'

Notice that we also put it under ‘busser’ to allow ServerSpec to run.

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.