chef-infrachef-solotest-kitchen

How to specify the version of Chef Solo in Test Kitchen .kitchen.yml file?


I am using Test Kitchen to test a cookbook. I would like to specify the version number of chef solo that will be installed. How can I specify a version number?


Solution

  • Figured it out...In your .kitchen.yml file you have an option called require_chef_omnibus. You can specify true, latest, or a version number.

    provisioner:
      name: chef_solo
      require_chef_omnibus: 11.10.4