简体   繁体   English

Mac OS X上的Windows Server Boots Winrm刀失败

[英]knife windows bootstrap winrm from Mac OS X fails chef client

Similiar issue to: knife bootstrap windows winrm from Mac OS X workstation fails 类似问题: Mac OS X工作站上的刀引导Windows Winrm失败

I downgraded to version 0.5.10 and got slightly further, but it does not seem to recognise the chef-client and install it. 我将其降级到0.5.10版本,并进行了进一步扩展,但是它似乎无法识别厨师客户端并安装了它。 I am using Mac OS X: 我正在使用Mac OS X:

) 1>C:\chef\wget.vbs 

C:\Users\Administrator>cscript /nologo C:\chef\wget.vbs /url:http://www.opscode.com/chef/install.msi /path:C:\Users\ADMINI~1\AppData\Local\Temp\chef-client-latest.msi 
CScript Error: Execution of the Windows Script Host failed. (0x800A0007)

C:\Users\Administrator>msiexec /qb /i C:\Users\ADMINI~1\AppData\Local\Temp\chef-client-latest.msi 
This installation package could not be opened.  Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer package.

C:\Users\Administrator>(
echo.-----BEGIN RSA PRIVATE KEY-----  
echo.-----END RSA PRIVATE KEY----- 
) 1>C:\chef\validation.pem 

C:\Users\Administrator>(
echo.log_level        :info  
echo.log_location     STDOUT  
echo. 
echo.chef_server_url  "https://api.opscode.com/organizations/company"  
echo.validation_client_name "company-validator"  
echo.client_key        "c:/chef/client.pem"  
echo.validation_key    "c:/chef/validation.pem"  
echo.file_cache_path   "c:/chef/cache"  
echo.file_backup_path  "c:/chef/backup"  
echo.cache_options     ({:path => "c:/chef/cache/checksums", :skip_expires => true})  
echo. 
echo.node_name "windows-boot-01" 
) 1>C:\chef\client.rb 

C:\Users\Administrator>(echo.{"run_list":["--verbose"]}) 1>C:\chef\first-boot.json 

C:\Users\Administrator>SET "PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Amazon\cfn-bootstrap\;C:\ruby\bin;C:\opscode\chef\bin;C:\opscode\chef\embedded\bin" 
54.217.81.232 
C:\Users\Administrator>chef-client -c c:/chef/client.rb -j c:/chef/first-boot.json -E edge 
'chef-client' is not recognized as an internal or external command,
operable program or batch file.

Does C:\\opscode\\chef exist? C:\\opscode\\chef是否存在? Maybe it's a PATH issue . 也许这是PATH问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM