【发布时间】:2014-06-23 13:41:38
【问题描述】:
我有一个 Ubuntu 工作站,我正在尝试引导一个 Windows 节点。 windows节点在2222端口开启ssh。我一直关注http://docs.opscode.com/plugin_knife_windows.html。
ateetor@ateetor-virtual-machine:~/chef/chef-repo$ sudo gem install knife-windows --http-proxy=[REMOVED]
Successfully installed knife-windows-0.5.12
1 gem installed
Installing ri documentation for knife-windows-0.5.12...
Installing RDoc documentation for knife-windows-0.5.12...
ateetor@ateetor-virtual-machine:~/chef/chef-repo$ sudo knife bootstrap windows ssh 10.29.3.114 -x chef -P SSHuser1! -N test -p 2222 -VV
DEBUG: Looking for bootstrap template in /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/knife/bootstrap
DEBUG: Found bootstrap template in /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/knife/bootstrap
Bootstrapping Chef on windows
DEBUG: Adding windows
DEBUG: establishing connection to windows:2222
ERROR: Network Error: getaddrinfo: Name or service not known
Check your knife configuration and network settings
在我看来,它试图将 windows 一词用作 IP 的一部分;但是我的语法与指南相匹配,所以我不知道为什么。有人对如何解决这个问题有任何想法吗?
【问题讨论】:
-
请不要忘记将答案标记为正确! :)
标签: windows plugins chef-infra knife