[chef] Re: Pleae help with windows bootstrap


Chronological Thread 
  • From: Steven Murawski < >
  • To: Fouts, Chris < >,
  • Subject: [chef] Re: Pleae help with windows bootstrap
  • Date: Wed, 14 Jan 2015 15:32:43 -0600

Are you bootstrapping from a Windows node or a Linux node?  What OS is the windows node?

If you are attempting from a linux or Mac node, could you try (replacing the url with the fqdn or ip of your target node)

curl --header "Content-Type: application/soap+xml;charset=UTF-8" --header "WSMANIDENTIFY: unauthenticated" http://192.168.1.82:5985/wsman --data '<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsmid="http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd"><s:Header/><s:Body><wsmid:Identify/></s:Body></s:Envelope>'

or if on Windows

test-wsman 192.168.1.82



-- 
Steven Murawski
Community Software Development Engineer @ Chef
Microsoft MVP - PowerShell
http://stevenmurawski.com



On January 14, 2015 at 3:26:50 PM, 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.

§