简体   繁体   中英

Does chef-solo support cookbook versions in run list items?

The documentation says:

Chef Solo does not provide: Environments, for setting policy of cookbook versions.

It says nothing about not supporting cookbook versions specified via run_list like:

{"run_list":["recipe[nginx@1.2.3]"]}

But I have tried running solo with run_list requiring a greater version of cookbook than available and it just goes through fine. Can you confirm that versions just aren't supported by solo, wherever. Solo should probably warn at least though.

To the best of my knowledge, this is not possible in Chef Solo. Chef Solo operates on a list ("directory") of cookbooks, so it's relatively impossible for multiple versions to exist for the same cookbook. I agree, maybe Chef Solo should produce a warning. Perhaps open a ticket?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM