【问题标题】:Cant accept license while running kitchen test运行厨房测试时无法接受许可证
【发布时间】:2019-05-23 01:03:17
【问题描述】:

我运行厨房测试,不能接受许可证,回答是什么都不做

厨房.yml

provisioner:
  name: chef_zero
  always_update_cookbooks: true
  retry_on_exit_code:
  - 35 # 35 is the exit code signaling that the node is rebooting
  max_retries: 1
client_rb:
    exit_status: :enabled # Opt-in to the standardized exit codes
    client_fork: false  # Forked instances don't return the real exit code
    environment: _default
    chef_license: accept
    product_name: chef
    chef-client: 14

【问题讨论】:

    标签: vagrant chef-infra chef-recipe test-kitchen


    【解决方案1】:

    尝试根据 github 问题在配置程序部分从 accept 更新到 accept-no-persisthttps://github.com/test-kitchen/test-kitchen/issues/1553

    provisioner: name: chef_zero always_update_cookbooks: true log_level: info chef_license: accept-no-persist product_name: chef product_version: 14

    注意(通过 tas50 对 github 问题的评论):Test Kitchen 1.x 不支持厨师许可。计划是将 2.x 分支上的工作向后移植到 1-stable 分支,并在支持下发布新的 1.X 版本。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-09-04
      • 1970-01-01
      • 2015-04-24
      • 2021-03-03
      • 1970-01-01
      相关资源
      最近更新 更多