简体   繁体   English

如何在 MacOS 中安装 chef 12 以部署到 AWS Opsworks?

[英]How to install chef 12 in MacOS for deployments to AWS Opsworks?

I would like to know how to install chef 12 in order to deploy a Ruby on Rails app to AWS OpsWorks using a Chef 12 stack.我想知道如何安装 chef 12,以便使用 Chef 12 堆栈将 Ruby on Rails 应用程序部署到 AWS OpsWorks。

Cookbook食谱

https://github.com/nebulab/aws-solidus-demo-opsworks_cookbook.git https://github.com/nebulab/aws-solidus-demo-opsworks_cookbook.git

$ berks install $ 伯克斯安装
$ berks package cookbooks.tar.gz $ berks package cookbooks.tar.gz

** AWS Opsworks Deployment Error** ** AWS Opsworks 部署错误**

[2020-07-03T04:21:10+00:00] ERROR: Cookbook 'deploy_resource' version '1.0.3' depends on chef version [">= 13.0"], but the running chef version is 12.18.31
[2020-07-03T04:21:10+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

**Chef Version in my MacOS local environment ** **我的 MacOS 本地环境中的 Chef 版本 **

$ chef --version
Chef Workstation version: 20.7.81
Chef Infra Client version: 16.2.73
Chef InSpec version: 4.21.1
Chef CLI version: 3.0.11
Test Kitchen version: 2.5.2
Cookstyle version: 6.9.0

$ chef-client -version                    
Chef: 12.18.31

Thanks in advance提前致谢

  1. The deploy resource was removed from chef 14 core and extracted into a cookbook called deploy_resource . deploy资源已从 chef 14 核心中移除,并提取到名为deploy_resource的说明书中。
  2. The latest version of that cookbook requires Chef 13+ (read the error).该食谱的最新版本需要 Chef 13+(阅读错误)。
  3. Chef 12 still came with the build in deploy resources. Chef 12 仍然带有内置deploy资源。

IMHO: Either you upgrade chef or downgrade the cookbook to an older version.恕我直言:要么升级厨师,要么将食谱降级到旧版本。

Keep in mind that Chef 12 is EOL long time ago.请记住,Chef 12 很久以前就停产了。 I'm not sure how OpsWorks deals with that but I would suggest to upgrade to the latest Chef 16 (or to cinc.sh, the community build)我不确定 OpsWorks 如何处理这个问题,但我建议升级到最新的 Chef 16(或 cinc.sh,社区构建)

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

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