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.
  • どうなのよ

windowsはrwinrmだとlocalmodeに対応してなさそう?

https://github.com/chef/chef-provisioning/pull/337

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 52.68.56.199 -N 52.68.56.199 -P 'hoge'  -z -VV --winrm-transport plaintext --node-ssl-verify-mode none --no-node-verify-api-cert false
  • 実行結果
..省略..
52.68.56.199 C:\Users\Administrator>chef-client -c c:/chef/client.rb -j c:/chef/first-boot.json
52.68.56.199 [2015-12-01T17:26:30+00:00] INFO: *** Chef 12.5.1 ***
52.68.56.199 [2015-12-01T17:26:30+00:00] INFO: Chef-client pid: 1540
52.68.56.199
52.68.56.199
52.68.56.199 ================================================================================
52.68.56.199 Chef encountered an error attempting to load the node data for "52.68.56.199"
52.68.56.199 ================================================================================
52.68.56.199
52.68.56.199 Unexpected Error:
52.68.56.199 -----------------
52.68.56.199 ChefZero::ServerNotFound: No socketless chef-zero server on given port 8889
52.68.56.199
52.68.56.199 [2015-12-01T17:27:01+00:00] ERROR: Running exception handlers
52.68.56.199 [2015-12-01T17:27:01+00:00] ERROR: Exception handlers complete
52.68.56.199 [2015-12-01T17:27:01+00:00] FATAL: Stacktrace dumped to c:/chef/cache/chef-stacktrace.out
52.68.56.199 [2015-12-01T17:27:01+00:00] FATAL: ChefZero::ServerNotFound: No socketless chef-zero server on given port 8889
DEBUG: 52.68.56.199[8D79F342-BF1B-4ABD-8BA4-B09C2521C066] => :command_cleanup[cmd.exe /C "%TEMP%\bootstrap-47360-1448990760.bat"]
DEBUG: 52.68.56.199[8D79F342-BF1B-4ABD-8BA4-B09C2521C066] => :shell_close
ERROR: Failed to execute command on 52.68.56.199 return code 1
gamisan9999
俺です。 株式会社アンドゲートに全力コミットしてます
http://www.andgate.co.jp
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