Monday, August 22, 2022

Resolve Chef Kitchen Verify Error "Cannot converge without accepting the Chef Infra Client License"

You might have experienced, Azure pipeline failing from kitchen verify step due to Chef Infra client License not accepted error while  creating a Chef test kitchen in Azure. Let's look at how to fix this issue in this post.

The issue

You can fix this by adding a script line to accept license to kitchen.yml or by adding environment variable CHEF_LICENSE=accept in Azure DevOps pipeline task.

Method 1:

Add following script line to Kitchen.yml file to accept Chef client license.



Method 2:

Add CHEF_LICENSE=accept environment variable to "kitchen verify" step in Azure DevOps pipeline as shown in the image.


Once Chef client license accepted, you would be able to see log messages that the licenses accepted successfully.




No comments:

Post a Comment