LoginSignup
2
2

More than 5 years have passed since last update.

Chef 12.5.1 localmode + Windows 2012R2で困った

Last updated at Posted at 2015-12-01
  • どうなのよ

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

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
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2