Help us understand the problem. What is going on with this article?

Chef 12.5.1 localmode + Windows 2012R2で困った

More than 5 years have passed since last update.
  • どうなのよ


SSH Port Foward対応してなきゃ動かないよな..と今頃気づいた

  • 対策

Windowsにssh入れたくないし、CodeDeployなどでターゲットにcookbookばらまいてchef-client -zすりゃよさそう

  • 環境

workstation: Mac OSX
target client: Windows 2012R2(Standard Edition)
Chef: 12.5.1
ChefDK: 0.10.0

  • コマンド
orenomac$ knife bootstrap windows winrm -N -P 'hoge'  -z -VV --winrm-transport plaintext --node-ssl-verify-mode none --no-node-verify-api-cert false
  • 実行結果
..省略.. C:\Users\Administrator>chef-client -c c:/chef/client.rb -j c:/chef/first-boot.json [2015-12-01T17:26:30+00:00] INFO: *** Chef 12.5.1 *** [2015-12-01T17:26:30+00:00] INFO: Chef-client pid: 1540 ================================================================================ Chef encountered an error attempting to load the node data for "" ================================================================================ Unexpected Error: ----------------- ChefZero::ServerNotFound: No socketless chef-zero server on given port 8889 [2015-12-01T17:27:01+00:00] ERROR: Running exception handlers [2015-12-01T17:27:01+00:00] ERROR: Exception handlers complete [2015-12-01T17:27:01+00:00] FATAL: Stacktrace dumped to c:/chef/cache/chef-stacktrace.out [2015-12-01T17:27:01+00:00] FATAL: ChefZero::ServerNotFound: No socketless chef-zero server on given port 8889
DEBUG:[8D79F342-BF1B-4ABD-8BA4-B09C2521C066] => :command_cleanup[cmd.exe /C "%TEMP%\bootstrap-47360-1448990760.bat"]
DEBUG:[8D79F342-BF1B-4ABD-8BA4-B09C2521C066] => :shell_close
ERROR: Failed to execute command on return code 1
俺です。 株式会社アンドゲートに全力コミットしてます
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away