8

我正在使用 Test Kitchen 来测试一本食谱。我想指定将要安装的 chef solo 的版本号。如何指定版本号?

4

2 回答 2

16

想通了...在您的.kitchen.yml文件中,您有一个名为require_chef_omnibus. 您可以指定truelatest或版本号。

provisioner:
  name: chef_solo
  require_chef_omnibus: 11.10.4
于 2014-04-30T22:10:06.720 回答
2
       **** 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
于 2018-12-17T23:32:33.960 回答