0
我正尝试使用Vagrant和主厨客户端配置虚拟机,但遇到主厨客户端配置区块时出现错误。我的厨师服务器安装在我的本地网络上。流浪主厨客户端配置失败,网络错误
我VagrantFile看起来是这样的:
config.vm.provision :chef_client do |chef|
chef.chef_server_url = "https://api.mychefserver.domain.com/organizations/org1"
chef.validation_client_name = "org1-validator"
chef.validation_key_path = "./chef-repo/.chef/org1-validator.pem"
chef.add_recipe "my_recipe"
chef.delete_node = true
chef.delete_client = true
end
从流浪汉/厨师客户端输出给我这个错误:
[2014-03-04T11:10:22-06:00] INFO: *** Chef 11.10.4 ***
[2014-03-04T11:10:22-06:00] INFO: Chef-client pid: 16217
Creating a new client identity for vagrant-poc1.domain.com using the validator key.
[2014-03-04T11:10:22-06:00] INFO: Client key /etc/chef/client.pem is not present - registering
================================================================================
Chef encountered an error attempting to create the client "vagrant-poc1.domain.com"
================================================================================
Network Error:
--------------
There was a network error connecting to the Chef Server:
Error connecting to https://api.mychefserver.domain.com/organizations/org1/clients - getaddrinfo: Name or service not known
Relevant Config Settings:
-------------------------
chef_server_url "https://api.mychefserver.domain.com/organizations/org1"
If your chef_server_url is correct, your network could be down.
[2014-03-04T11:10:22-06:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
上什么可能导致问题的任何想法。我最好的猜测是我为我的厨师服务器使用了不正确的URL,但我似乎无法找到任何告诉我正确的格式是什么的东西。
使用私人厨师时URL不同。开源厨师不支持组织。 –