问题描述
我正在尝试使用刀具引导程序来设置厨师客户端节点:
I am trying to setup a chef client node using knife bootstrap:
knife bootstrap nodename -x user -P passwd --sudo
获取以下错误消息:
我的配置设置不错,我有尝试重新启动所有厨师服务器服务,并尝试从节点将厨师客户端配置为
My config settings looks good, I have tried restarting all the chef-server services and tried configuring the chef-client from the node as
- 在新服务器中正确安装了Chef VM
- 已删除
/ etc / chef
中的文件 - 已在我的Chef服务器上复制
/etc/chef/chef-validator.pem
到我的/etc/chef/validator.pem
- 运行
chef-client -l debug -S -K /etc/chef/validation.pem
还是我得到
- Installed chef correctly in a new VM
- Removed files in
/etc/chef
- Copied over my Chef servers
/etc/chef/chef-validator.pem
to my/etc/chef/validator.pem
- Ran the
chef-client -l debug -S https://mychefserver.url.com -K /etc/chef/validation.pem
Still I am getting
我的厨师工作站运行正常,没有任何问题。厨师节点中的任何配置文件我都可能会排除故障?
My chef workstation is working fine without any issues. Any configuration files in chef node I could possibly troubleshoot?
推荐答案
我也遇到了这个问题。 ..
I also had this problem...
-
如果使用Windows工作站,请检查Windows Explorer中解压缩入门工具包中包含的文件是否为未阻止 。
If using a Windows workstation, check that the files contained in the unzipped starter kit are "Unblocked" in Windows Explorer.
也转到我们的厨师节点并删除其中包含的所有 client.pem
文件。
Also go to our chef node and delete any client.pem
files which are contained there.
如果您已经引导了一个节点,然后再次下载了入门工具包,则可能会发生这种情况。先前的 client.pem
不会从节点中删除。您需要手动删除它,以便进行身份验证。
This can happen if you have already boot strapped a node then you download your starter kit again. The previous client.pem
is not removed from the node. You need to manually remove this so that authentication can occur.
这篇关于主刀引导的Chef节点配置问题-无法通过服务器进行身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!