Chef: 14.1.12Windows10学习教程我在~/ knife.rb -chef/.chef/knife.rb (C:\users\wdavis\learn-chef.chef\knife.rb)学习
我运行ssl fetch knife ssl fetch
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这是我的knife.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/"]但是,如果我运行:knife ssl fetch https://synchef.url.com
它工作得很好-那么为什么只使用knife.rb时它就不能工作呢?
我还应该补充说,我在尝试上传食谱时也看到了类似的问题。它说它正在使用我的knife.rb,食谱显然在那里,但它声称找不到它们。
所以在我看来,也许它并没有真正使用它应该使用的knife.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?这不是在我的knife.rb中配置的
发布于 2018-05-25 03:30:17
我在VS Code中编写了原始文件-它将文件另存为UTF-16 LE。我注意到我下载的初学者工具包中的文件是UTF-8。我以UTF-8格式重新保存了文件,命令运行正常。似乎ChefDk附带的ruby版本不喜欢UTF-16LE?
https://stackoverflow.com/questions/50516558
复制相似问题