Chef infra 刀不是';t使用Knife.rb

Chef infra 刀不是';t使用Knife.rb,chef-infra,knife,Chef Infra,Knife,厨师长:14.1.12 Windows 10 通过本教程,我的knife.rb位于~/learn chef/.chef/knife.rb(C:\users\wdavis\learn chef.chef\knife.rb) 我运行ssl获取 ssl获取 Results: INFO: Using configuration from C:/Users/wdavis/learn-chef/.chef/knife.rb WARNING: Certificates from localho

厨师长:14.1.12 Windows 10 通过本教程,我的knife.rb位于~/learn chef/.chef/knife.rb(C:\users\wdavis\learn chef.chef\knife.rb)

我运行ssl获取
ssl获取

Results:
    INFO: Using configuration from C:/Users/wdavis/learn-chef/.chef/knife.rb
    WARNING: Certificates from localhost will be fetched and placed in your trusted_cert
    directory (c:\users\wdavis\learn-chef\.chef\trusted_certs).

    Knife has no means to verify these are the correct certificates. You should
    verify the authenticity of these certificates after downloading.

    ERROR: Errno::ECONNRESET: An existing connection was forcibly closed by the remote host. - SSL_connect
这是我的刀。rb:

current_dir = File.dirname(__FILE__)
log_level                 :info
log_location              STDOUT
node_name                 "chefadmin"
client_key                "#{current_dir}/chefadmin.pem"
chef_server_url           "https://synchef.url.com/organizations/syn"
cookbook_path             ["#{current_dir}/../cookbooks/"]
但是,如果我运行:
ssl获取https://synchef.url.com

它工作得很好-那么为什么仅仅使用刀子时它不工作呢

我还应该补充一点,我在尝试上传烹饪书时也发现了类似的问题。它说它在用我的刀。rb和食谱显然在那里,但它声称找不到它们

所以在我看来,它可能不是真的在用刀。它应该吗

这是另一个例子:

knife ssl check -V
INFO: Using configuration from C:/Users/wdavis/learn-chef/.chef/knife.rb
Connecting to host localhost:443
ERROR: Errno::ECONNRESET: An existing connection was forcibly closed by the remote host. - SSL_connect

为什么它试图连接到localhost:443?这不是我的刀中配置的。rb

我用VS代码编写了原始文件,并将文件保存为UTF-16 LE。我注意到在初学者工具包中我下载的文件是UTF-8。我用UTF-8重新保存了我的文件,命令运行良好。ChefDk附带的ruby版本似乎不喜欢UTF-16LE