【发布时间】: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)?
【问题讨论】:
标签: chef-infra