I am trying to bootstrap windows server with chef-client. I am able to manually go in and install the Chef omnibus installer. Then I successfully installed the rubygem knife-windows for chef-client using the chef-client gem installer. When I attempt to execute
knife bootstrap windows winrm myserver.net
I receive time out messages as such:
knife bootstrap windows winrm myserver.net Bootstrapping Chef on myserver.net Enter your password: ERROR: Network Error: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. - connect(2) (http://myserver.net:5985) Check your knife configuration and network settings
I'm not sure what that means, or what to check.
--EDIT-- Found out, that I had to run: 'winwrm quickconfig -q' on the target windows server to open the ports. Now I'm receiving a 401 error from the server.
C:\Users\CP_USER>knife bootstrap windows winrm myserver.net -x CP_USER Bootstrapping Chef on myserver.net Enter your password: ERROR: Failed to authenticate to ["myserver.net"] as CP_USER Response: Bad HTTP response returned from server (401).