【问题标题】:How to install chef 12 in MacOS for deployments to AWS Opsworks?如何在 MacOS 中安装 chef 12 以部署到 AWS Opsworks?
【发布时间】:2020-10-23 18:39:09
【问题描述】:

我想知道如何安装 chef 12,以便使用 Chef 12 堆栈将 Ruby on Rails 应用程序部署到 AWS OpsWorks。

食谱

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

$ berks 安装
$ berks package cookbooks.tar.gz

** 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)

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

提前致谢

【问题讨论】:

    标签: amazon-web-services chef-infra aws-opsworks


    【解决方案1】:
    1. deploy 资源已从 Chef 14 核心中移除并提取到名为 deploy_resource 的食谱中。
    2. 该食谱的最新版本需要 Chef 13+(阅读错误)。
    3. Chef 12 仍然在 deploy 资源中附带构建。

    恕我直言:要么升级厨师,要么将食谱降级到旧版本。

    请记住,Chef 12 很久以前就停产了。我不确定 OpsWorks 如何处理这个问题,但我建议升级到最新的 Chef 16(或 cinc.sh,社区版本)

    【讨论】:

    猜你喜欢
    • 2016-12-12
    • 2017-06-17
    • 1970-01-01
    • 2016-08-06
    • 2016-03-19
    • 2021-02-25
    • 2021-10-22
    • 2014-05-25
    • 2016-05-07
    相关资源
    最近更新 更多