【问题标题】:How to accept chef license when using knife bootstrap command?使用刀引导命令时如何接受厨师许可证?
【发布时间】:2021-04-08 00:02:43
【问题描述】:

我正在使用knife bootstrap 命令远程引导使用chef 16.5.77 的节点。但是,即使我已发送 --chef-license accept 作为参数,它仍要求我先接受许可证。

# /usr/bin/knife bootstrap --bootstrap-version 16.5.77 <machine name> --chef-license accept --ssh-user <user> -i <path-to-ssh-key> --environment <env> --config knife_config.rb --yes --sudo --bootstrap-install-command "rpm -e $(rpm -qa 'chef'); rpm -i <path-to-chef.rpm>"

我仍然收到以下回复 -

  Thank you for installing Chef Infra Client! For help getting started visit https://learn.chef.io
  Starting the first Chef Client run...
  +---------------------------------------------+
              Chef License Acceptance
 
  Before you can continue, 2 product licenses
  must be accepted. View the license at
  https://www.chef.io/end-user-license-agreement/
 
  Licenses that need accepting:
    * Chef Infra Client
    * Chef InSpec
 
  Do you accept the 2 product licenses (yes/no)?

【问题讨论】:

  • 我想你要找的答案是here
  • 链接仅指向此页面@seshadri_c
  • 对不起,我发布了错误的链接。这是answer

标签: chef-infra


【解决方案1】:

根据chef docs -

Chef Client 14 中的 Knife bootstrap 命令无法接受远程节点上的 Chef Infra Client 15 EULA,除非您使用自定义模板并将 chef_license “accept”添加到 client.rb。这适用于安装了 Chef Infra Client

因此,当我将本地计算机上的 chef-client 升级到更高版本 (>= 15.x) 时,这可以正常工作。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-03-28
    • 1970-01-01
    • 1970-01-01
    • 2013-11-03
    • 2013-05-17
    • 1970-01-01
    • 1970-01-01
    • 2015-10-29
    相关资源
    最近更新 更多