You add it to the knife bootstrap windows winrm
command.
That’s that I thought and tried but it’s not working, so I must be adding your command incorrectly. Here’s the original bootstrap command: knife bootstrap windows winrm server.domain.com -x user -P password -N nodename
How do I run it with your command above?
You will need knife-windows 1.7.0 for this to work. This was released this morning. gem install knife-windows
should download the latest version which should be 1.7.0 right now. Then running:
knife bootstrap windows winrm server.domain.com -x user -P password -N nodename --winrm-codepage 437
should result in the bootstrap script actually running on a 2008 node.
Hmm…that’s exactly what I tried before and got this: Error: invalid option: --winrm-codepage
oh that makes it sounds like it is definitely not using 1.7.0. Are you using chef-dk on the workstation from where you are bootstrapping? If so you may want to use chef gem install knife-windows
and also use chef shell init
to initialize your shell to ensure your path is correct.
Ahh…I know what I did wrong the first time with the chef gem install knife-windows
. That command worked this time and I was able to run --winrm-codepage 437
. And the bootstrap is working so far…
Will update here once it’s done.
The bootstrap ran better this time but hit an OpenSSL error along the way: OpenSSL::SSL::SSLError
.
I’ve seen this error before and think I know how to fix.
Anyway, thanks Matt for helping me get this far. You are a Chef rock star!