gpt4 book ai didi

ruby - 是否可以在不运行默认 Recipe 的情况下运行 Chef Recipe

转载 作者:数据小太阳 更新时间:2023-10-29 07:53:55 25 4
gpt4 key购买 nike

我的 nginx Recipe 中有两个 Chef Recipe 。一个名为 default.rb,另一个名为 sites.rb。当我用

运行网站 Recipe 时
RUN_LIST=recipe[nginx::sites] bundle exec cap staging chef:solo

然后我的默认配方也会运行。我该如何防止这种情况发生?

最佳答案

删除行

include_recipe "nginx"

因为它包含默认配方(nginx::default)

关于ruby - 是否可以在不运行默认 Recipe 的情况下运行 Chef Recipe ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9213640/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com