Skip to content

Instantly share code, notes, and snippets.

@rj-reilly
Last active August 29, 2015 14:25
Show Gist options
  • Save rj-reilly/b6cdd92beb915ef71685 to your computer and use it in GitHub Desktop.
Save rj-reilly/b6cdd92beb915ef71685 to your computer and use it in GitHub Desktop.
knife bootstrap windows winrm -N xx.xx.xx.net 10.10.64.44 -x 'userxx'
INFO: Using configuration from /home/rreilly/chef-repo/.chef/knife.rb
Waiting for remote response before bootstrap.DEBUG: Adding xx.xx.64.44
DEBUG: :session => :init
DEBUG: :relay_to_servers => echo . & echo Response received.
DEBUG: :relayed => xx.xx.64.44
DEBUG: xx.xx.64.44 => :run_command
DEBUG: xx.xx.64.44[D5E14E88-379E-446A-92BB-48AABA4C8A12] => :shell_open
DEBUG: xx.xx.64.44[D5E14E88-379E-446A-92BB-48AABA4C8A12] => :run_command[echo . & echo Response received.]
DEBUG: :relay_output_from_backend => ["xx.xx.64.44", ". \r\n"]
xx.xx.64.44 .
DEBUG: :relay_output_from_backend => ["xx.xx.64.44", "Response received.\r\n"]
xx.xx.64.44 Response received.
DEBUG: xx.xx.64.44[D5E14E88-379E-446A-92BB-48AABA4C8A12] => :command_cleanup[echo . & echo Response received.]
DEBUG: xx.xx.64.44[D5E14E88-379E-446A-92BB-48AABA4C8A12] => :shell_close
DEBUG: :command_complete => xx.xx.64.44 with return code 0
DEBUG: command complete on xx.xx.64.44
DEBUG: command complete on All Servers
DEBUG: Exit code found: 0
DEBUG: :unbind => :connection
DEBUG: xx.xx.64.44 => :unbind
DEBUG: :unbind_backend => xx.xx.64.44
DEBUG: :session => :close
Remote node responded after 0.0 minutes.
Bootstrapping Chef on xx.xx.64.44
DEBUG: Looking for bootstrap template in /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/knife-windows-0.8.5/lib/chef/knife/bootstrap
DEBUG: Found bootstrap template in /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/knife-windows-0.8.5/lib/chef/knife/bootstrap
ERROR: knife encountered an unexpected error
This may be a bug in the 'bootstrap windows winrm' knife command or plugin
Please collect the output of this command with the `-VV` option before filing a bug report.
Exception: NoMethodError: undefined method `gsub' for false:FalseClass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment