How to specify Chef Solo version in test kitchen .kitchen.yml file?

I use Test Kitchen to test the cookbook. I would like to indicate the version number of the solo chef to be installed. How to indicate version number?

+8
chef chef-solo test-kitchen
source share
2 answers

It .kitchen.yml out ... In your .kitchen.yml file, you have the require_chef_omnibus option. You can specify true , latest or version number.

 provisioner: name: chef_solo require_chef_omnibus: 11.10.4 
+15
source share
  **** require_chef_omnibus deprecated The 'require_chef_omnibus' attribute with version values will change to use the new 'product_version' attribute. Note: 'product_name' must be set in order to use 'product_version' until 'product_name' replaces 'require_chef_omnibus' as the default. # New Usage # provisioner: product_name: <chef or chefdk> product_version: 13.12.3 
0
source share

All Articles