chef-infra - 是什么卡住了我的 Recipe ?

标签 chef-infra chef-recipe

快速提问。为什么每当我使用 Berkshelf 管理我的食谱依赖项时,我自己的食谱都会被卡住?有没有办法解冻?

knife cookbook upload myNodeApp

Uploading myNodeApp  [0.1.0]
ERROR: Version 0.1.0 of cookbook myNodeApp is frozen. Use --force to override.
WARNING: Not updating version constraints for LighthouseApi in the environment as the cookbook is frozen.
ERROR: Failed to upload 1 cookbook.

更新:

这是我的 Berksfile。
source "https://api.berkshelf.com"

metadata

cookbook 'apt', '~> 2.4.0'
cookbook 'nginx', '~> 2.7.4'
cookbook 'redisio', '~> 1.7.1'
cookbook 'mysql', '~> 5.3.6'
cookbook 'nodejs', '~> 1.3.0'
cookbook 'npm', '~> 0.1.2'
cookbook 'mongodb', '~> 0.16.1'

最佳答案

Berkshelf 在上传时自动卡住食谱。您可以使用 --no-freeze 禁用此功能。选项。

$ berks help upload
Usage:
  berks upload [COOKBOOKS]

Options:
  -b, [--berksfile=PATH]                               # Path to a Berksfile to operate off of.
  -e, [--except=one two three]                         # Exclude cookbooks that are in these groups.
  -o, [--only=one two three]                           # Only cookbooks that are in these groups.
      [--no-freeze], [--no-no-freeze]                  # Do not freeze uploaded cookbook(s).
      [--force]                                        # Upload all cookbook(s) even if a frozen one exists on the Chef Server.
      [--ssl-verify], [--no-ssl-verify]                # Disable/Enable SSL verification when uploading cookbooks.
  -s, [--skip-syntax-check], [--no-skip-syntax-check]  # Skip Ruby syntax check when uploading cookbooks.
      [--halt-on-frozen], [--no-halt-on-frozen]        # Exit with a non zero exit code if the Chef Server already has the version of the cookbook(s).
  -c, [--config=PATH]                                  # Path to Berkshelf configuration to use.
  -F, [--format=FORMAT]                                # Output format to use.
                                                       # Default: human
  -q, [--quiet], [--no-quiet]                          # Silence all informational output.
  -d, [--debug], [--no-debug]                          # Output debug information

关于chef-infra - 是什么卡住了我的 Recipe ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24939694/

相关文章:

chef-infra - 如何在库代码中使用 Chef "search"方法(在模块方法中)?

chef-infra - 如何在RHEL上使用chef安装JDK8

chef-infra - 如何在 Chef 中定义和调用数组?

docker - 如何将 Chef 数据包 secret 传递给 docker 容器?

chef-infra - Chef : Resource Vs Recipe

amazon-web-services - Chef 独奏解释

arrays - 将 Ruby 数组元素传递给方法

ruby - Chef 错误在资源 `start` 上执行操作 'service[httpd]'

chef-infra - 菜谱中的cookbook_name - TypeError : no implicit conversion of Symbol into String

mysql - 通过未执行的 ruby​​_block 设置 Chef 变量