How can I run a cookbook with a specific version using chef-client?

I have 2 cookbook titles like mycookbook and version 0.1.0 and 0.1.1 on the chef's server. Now I want to use only mycookbook version 0.1.1 cookbook using chef-client. How to do it?

+6
source share
1 answer

Found an answer with some punch and try

executed the following command

chef-client -o "recipe[ mycookbook@0.1.1 ]" 

This will call mycookbook version 0.1.1 What is it !!!

+20
source

Source: https://habr.com/ru/post/982192/


All Articles