Sur*_*ala 17 installation ubuntu chef-infra knife
配置文件写入/ home/ubuntu/sudo /home/ubuntu/chef-repo/.chef/knife.rb
ubuntu@mychefclient:~$ knife client list
WARNING: No knife configuration file found
ERROR: Your private key could not be loaded from /etc/chef/client.pem
Check your configuration file and ensure that your private key is readable
小智 29
请检查一下.chef/knife.rb中是否存在knife.rb文件.
如果没有运行以下命令:
knife configure initial
所以它会创建knife.rb,然后检查knife.rb中客户端密钥的路径,并交叉检查client.pem是否存在于该位置.
如果这不起作用.
只需转到客户端节点并从/ etc/chef中删除client.pem,然后运行chef-client,这样它将再次创建client.pem.现在将client.pem复制到服务器上,并将该位置添加到knife.rb中
它肯定会工作:)
| 归档时间: | 
 | 
| 查看次数: | 32887 次 | 
| 最近记录: |