我使用以下命令从 opscode 站点下载了许多 Recipe : Knife Recipe 网站安装 git 例如。但是现在我想从 github 上的存储库中下载一本 Recipe 到我当前的 Recipe 目录中。我该怎么做呢?我应该将存储库克隆到我的 Recipe 目录中吗?
谢谢!
最佳答案
您可以从 https://github.com/websterclay/knife-github-cookbooks 安装 Knife github 插件, 之后您可以简单地使用 knife cookbook github install cookbooks/yum
从 https://github.com/cookbooks/yum 安装 yum .
但是,我建议使用 https://github.com/applicationsonline/librarian 中的 Librarian-Chef。 ,它的工作原理与 bundler 对 ruby gems 的工作方式非常相似(如果你熟悉的话)。
编辑:由于这显然仍然收到意见,我会失职更不用提berkshelf ,这是惊人的。
关于chef-infra - 从 github 添加 Chef Recipe ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11113224/