chef-workstation icon indicating copy to clipboard operation
chef-workstation copied to clipboard

Change provisioner to chef-infra from chef-zero when using `chef generate cookbook`

Open snohio opened this issue 2 years ago • 0 comments

Describe the Enhancement:

Currently chef generate cookbook creates the kitchen.yml file with:

provisioner:
  name: chef_zero

chef_zero should be changed to chef_infra per the Chef Provisioner Documentation

It states:

Test Kitchen includes two provisioners for Chef Infra, chef_solo and chef_infra, that support similar options. chef_zero was renamed chef_infra in Test Kitchen 3.0. This change is backward-compatible, and both names work starting with Test Kitchen 3.0. In older releases, you will need to use chef_zero.

Describe the Need:

Users that are using new versions of Chef Workstation to generate cookbooks

Current Alternative

Leave it alone because it is backwards compatible or manually change it.

Can We Help You Implement This?:

Clone me? I'll see if I can take a look and find that bit of code as it should be an easy fix.

snohio avatar May 20 '22 13:05 snohio