- From: AJ Christensen <
>
- To: "
" <
>
- Subject: [chef] Re: Pleae help with windows bootstrap
- Date: Thu, 15 Jan 2015 10:28:17 +1300
mynode.domain.com does not resolve, thus knife cannot connect to the
machine that supposedly is behind that fqdn a record. maybe use an ip
address if an fqdn does not exist / is not resolvable.
cheers,
aj
On Thu, Jan 15, 2015 at 10:26 AM, Fouts, Chris
<
>
wrote:
>
With the help of this group I was able to get this working when I had
>
chef-client v11.x, and chef-server v11.x. I moved to chef-client v12.0 and
>
Chef 12 Enterprise. Again, as before, I followed these instructions:
>
https://docs.chef.io/plugin_knife_windows.html to set up winrm on the
>
Windows box, which checks out.
>
>
>
>
I do…
>
>
>
>
knife bootstrap windows winrm 'mynode.domain.com' -x domain\\Administrator
>
-P password -p 5985 -VV
>
>
INFO: Using configuration from
>
/opt/jenkins/workspace/Chef-Deploy-RNIs/chef-deploy-leeds/.chef/knife.rb
>
>
>
>
Waiting for remote response before bootstrap
>
>
>
>
..DEBUG:
>
>
Adding leed-dc.davis.sensus.lab
>
>
DEBUG: :session => :init
>
>
DEBUG: :relay_to_servers => echo . & echo Response received.
>
>
DEBUG: :relayed => mynode.domain.com
>
>
DEBUG: leed-dc.davis.sensus.lab => :run_command
>
>
>
>
(above lines repeated 12 times)
>
>
>
>
ERROR: No response received from remote node after 1.84 minutes, giving up.
>
>
ERROR: Network Error: getaddrinfo: Name or service not known
>
(http://mynode.domain.com:5985)
>
>
Check your knife configuration and network settings
>
>
>
>
Here’s my knife.rb (secret values changed)
>
>
>
>
current_dir = File.dirname(__FILE__)
>
>
log_level :info
>
>
log_location STDOUT
>
>
node_name "jenkins"
>
>
client_key "#{current_dir}/jenkins.pem"
>
>
validation_client_name "chef-validator"
>
>
validation_key "#{current_dir}/chef-validator.pem"
>
>
chef_server_url
>
"https://mychefserver.domain.com/organizations/myorg"
>
>
cache_type 'BasicFile'
>
>
cache_options( :path => "#{ENV['HOME']}/.chef/checksums" )
>
>
cookbook_path ["#{current_dir}/../chef-repo/cookbooks"]
>
>
knife[:editor]="vim"
>
>
Archive powered by MHonArc 2.6.16.