无法从工作站连接到 chef-server。尝试使用命令“knife node list”
Network Error: Error connecting to https://<chef-server-address>/nodes - Failed to open TCP connection to <chef-server-address>
(getaddrinfo: Name or service not known)
Check your knife configuration and network settings
这是我的刀锉
current_dir = File.dirname(__FILE__)
log_level :info
log_location STDOUT
node_name "node-name"
client_key "#{current_dir}/<chef-server-address>.pem"
validation_client_name "chef-validator"
validation_key "#{current_dir}/chef-validator.pem"
chef_server_url "https://<chef-server-address>"
cache_type 'BasicFile'
cache_options( :path => "#{ENV['HOME']}/.chef/checksums" )
cookbook_path ["#{current_dir}/../cookbooks"]
答案1
chef_server_url "https://<chef-server-address>"
更改此参数,并粘贴您的 chef 服务器的实际地址