[chef] empty run list when bootstrapping windows nodes


Chronological Thread 
  • From: stoyan stoyanov < >
  • To:
  • Subject: [chef] empty run list when bootstrapping windows nodes
  • Date: Thu, 6 Sep 2012 17:43:28 +0200

Hi there,

i want to bootstrap some Windows 7 nodes using knife-windows. 
The bootstrap process goes all well but the recipe never gets executed. I am doing the bootstrapping like this:

knife bootstrap windows winrm 172.16.36.130 -x user -P user -r "recipe[windows_extras::java]"

I also tried the ssh way but there was no difference:
knife bootstrap windows ssh 172.16.36.130 -x user -P pass -r "recipe[windows_extras::java]"

Creating a role with the recipe was also not a solution. In the chef directory on the client node i have only four files: client.pem, client.rb, validation.pem and wget.vbs.  Where is my json with the run list!?

I am running ubuntu 12.04 with ruby installed via rvm (ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]), Chef 10.12.0 and i am using hosted chef.
Does anyone else encounter the similar problem, do i miss something?  I would be very grateful for any clues :)

Greetings,
Stoyan

p.s here the log from the bootstrapping:

Bootstrapping Chef on 172.16.36.130
172.16.36.130 "Rendering 'C:\Users\EXAKT\AppData\Local\Temp\bootstrap-8305-1346946020.bat' chunk 1" 
172.16.36.130 "Rendering 'C:\Users\EXAKT\AppData\Local\Temp\bootstrap-8305-1346946020.bat' chunk 2" 
172.16.36.130 "Rendering 'C:\Users\EXAKT\AppData\Local\Temp\bootstrap-8305-1346946020.bat' chunk 3" 
172.16.36.130 "Rendering 'C:\Users\EXAKT\AppData\Local\Temp\bootstrap-8305-1346946020.bat' chunk 4" 
172.16.36.130 "Rendering 'C:\Users\EXAKT\AppData\Local\Temp\bootstrap-8305-1346946020.bat' chunk 5" 
172.16.36.130 \Microsoft was unexpected at this time.
172.16.36.130 
172.16.36.130 C:\Windows\system32>mkdir C:\chef 
172.16.36.130 A subdirectory or file C:\chef already exists.
172.16.36.130 
172.16.36.130 C:\Windows\system32>(
172.16.36.130 echo.url = "WScript.Arguments.Named("url")"  
172.16.36.130  echo.path = WScript.Arguments.Named("path")  
172.16.36.130  echo.Set objXMLHTTP = CreateObject("MSXML2.ServerXMLHTTP")  
172.16.36.130  echo.Set wshShell = CreateObject( "WScript.Shell" )  
172.16.36.130  echo.Set objUserVariables = wshShell.Environment("USER")  
172.16.36.130  echo. 
172.16.36.130  echo.'http proxy is optional  
172.16.36.130  echo.'attempt to read from HTTP_PROXY env var first  
172.16.36.130  echo.On Error Resume Next  
172.16.36.130  echo. 
172.16.36.130  echo.If NOT (objUserVariables("HTTP_PROXY") = "") Then  
172.16.36.130  echo.objXMLHTTP.setProxy 2, objUserVariables("HTTP_PROXY")  
172.16.36.130  echo. 
172.16.36.130  echo.'fall back to named arg  
172.16.36.130  echo.ElseIf NOT (WScript.Arguments.Named("proxy") = "") Then  
172.16.36.130  echo.objXMLHTTP.setProxy 2, WScript.Arguments.Named("proxy")  
172.16.36.130  echo.End If  
172.16.36.130  echo. 
172.16.36.130  echo.On Error Goto 0  
172.16.36.130  echo. 
172.16.36.130  echo.objXMLHTTP.open "GET", url, false  
172.16.36.130  echo.objXMLHTTP.send() 
172.16.36.130  echo.If objXMLHTTP.Status = 200 Then  
172.16.36.130  echo.Set objADOStream = CreateObject("A
172.16.36.130 DODB.Stream")  
172.16.36.130  echo.objADOStream.Open 
172.16.36.130  echo.objADOStream.Type = 1  
172.16.36.130  echo.objADOStream.Write objXMLHTTP.ResponseBody  
172.16.36.130  echo.objADOStream.Position = 0  
172.16.36.130  echo.Set objFSO = Createobject("Scripting.FileSystemObject")  
172.16.36.130  echo.If objFSO.Fileexists(path) Then objFSO.DeleteFile path  
172.16.36.130  echo.Set objFSO = Nothing  
172.16.36.130  echo.objADOStream.SaveToFile path  
172.16.36.130  echo.objADOStream.Close 
172.16.36.130  echo.Set objADOStream = Nothing  
172.16.36.130  echo.End if  
172.16.36.130  echo.Set objXMLHTTP = Nothing 
172.16.36.130 ) 1>C:\chef\wget.vbs 
172.16.36.130 
172.16.36.130 C:\Windows\system32>cscript /nologo C:\chef\wget.vbs /url:http://www.opscode.com/chef/install.msi /path:C:\Users\EXAKT\AppData\Local\Temp\chef-client-latest.msi 
172.16.36.130 
172.16.36.130 C:\Windows\system32>msiexec /qb /i C:\Users\EXAKT\AppData\Local\Temp\chef-client-latest.msi 
172.16.36.130 
172.16.36.130 C:\Windows\system32>(
172.16.36.130 echo.-----BEGIN RSA PRIVATE KEY-----  
172.16.36.130 echo. HERE COMES MY KEY
172.16.36.130  echo.-----END RSA PRIVATE KEY----- 
172.16.36.130 ) 1>C:\chef\validation.pem 
172.16.36.130 
172.16.36.130 C:\Windows\system32>(
172.16.36.130 echo.log_level        :info  
172.16.36.130  echo.log_location     STDOUT  
172.16.36.130  echo. 
172.16.36.130  echo.chef_server_url  "https://api.opscode.com/organizations/dre"  
172.16.36.130  echo.validation_client_name "dre-validator"  
172.16.36.130  echo.client_key        "c:/chef/client.pem"  
172.16.36.130  echo.validation_key    "c:/chef/validation.pem"  
172.16.36.130  echo. 
172.16.36.130  echo.file_cache_path   "c:/chef/cache"  
172.16.36.130  echo.file_backup_path  "c:/chef/backup"  
172.16.36.130  echo.cache_options     ({:path => "c:/chef/cache/checksums", :skip_expires => true})  
172.16.36.130  echo. 
172.16.36.130  echo.# Using default node name (fqdn) 
172.16.36.130 ) 1>C:\chef\client.rb 


  • [chef] empty run list when bootstrapping windows nodes, stoyan stoyanov, 09/06/2012

Archive powered by MHonArc 2.6.16.

§