linux - 无法上传我的 Recipe

标签 linux chef-infra devops automated-deploy

我目前正在从事部署自动化的 Chef 工作,我正在构建一个依赖于我拥有的另一本 Recipe 的 Recipe 已经从 Chef 超市下载( Recipe 是数据库 6.1.1),我做了 depends 和 include_recipe 部分,但是当我上传我的 Recipe 时仍然出现这个错误

(当我尝试上传显然依赖于另一本 Recipe Postgresql 的数据库说明书时发生了同样的事情,这意味着我陷入了依赖循环) 感谢您的帮助!

enter image description here

最佳答案

根据您使用的 Chef 版本,我建议在上传时使用 --include-dependencies 选项。

( https://docs.chef.io/knife_cookbook.html )

-d, --include-dependencies 确保当一本 Recipe 依赖于一本(或多本) Recipe 时,这些 Recipe 也会被上传。

关于linux - 无法上传我的 Recipe ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50100525/

相关文章:

linux - 使用输入和多个管道循环 Linux 命令

mysql - 使用 Ruby/Chef Recipe for Vagrant 导入 Mysql 数据库

ruby - Vagrant 默认使用 Ruby 1.9.3

azure - 在 Azure DevOps 中通过拉取请求进行构建

Azure DevOps 部署概述

linux - Alpine linux,制作自定义 ISO 镜像

java - 如果你只有一个 java 应用程序的 shell 安装程序,你如何构建一个 docker 镜像?

python - 如何在 Python 中判断我是否在 Beowulf 集群上运行?

node.js - 如何在 Chef 的文件夹内运行 "npm install"?

.net命令列表包--在azure管道中格式化json