简体   繁体   English

Chef-solo是否支持运行列表项目中的食谱版本?

[英]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. Chef Solo不提供:用于设置食谱版本策略的环境。

It says nothing about not supporting cookbook versions specified via run_list like: 它说不支持不支持通过run_list指定的烹饪书版本,例如:

{"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. 但是我尝试用run_list单独运行,需要的菜谱版本比可用版本大,并且一切正常。 Can you confirm that versions just aren't supported by solo, wherever. 您可以确认无论在何处,solo都不支持这些版本。 Solo should probably warn at least though. Solo应该至少应该发出警告。

To the best of my knowledge, this is not possible in Chef Solo. 据我所知,Solo主厨无法做到这一点。 Chef Solo operates on a list ("directory") of cookbooks, so it's relatively impossible for multiple versions to exist for the same cookbook. Chef Solo在食谱清单(“目录”)上进行操作,因此同一食谱存在多个版本是相对不可能的。 I agree, maybe Chef Solo should produce a warning. 我同意,也许Solo Solo厨师应该发出警告。 Perhaps open a ticket? 也许开票?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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