我的 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/