Installing knife-windows from behind an NTLM firewall

Hi

I am trying to seed some devops goodness on client site at present.

It’s a Microsoft shop.

They have an NTLM proxy.

I have installed chef using the Windows installer on my local dev workstation.

I want to install the knife-windows plugin to start playing with the remote
management stuff over winrm.

After some googling I realised how rubygems doesn’t play nicely with NTLM.

This looked like the best option for me:

http://www.stuartellis.eu/articles/installing-ruby/#install-windows

with the slight variation using this command:

copy C:\opscode\chef\embedded\lib\ruby\gems\1.9.1\gems\rubysspi-1.3.1\spar.rb
C:\opscode\chef\embedded\lib\ruby\site_ruby\1.9.1

I retried the gem install command but I get the following error:

C:\opscode>gem install knife-windows
ERROR: While executing gem … (Gem::RemoteFetcher::FetchError)
SocketError: getaddrinfo: This is usually a temporary error during hostname
resolution and means that the local server did not receive a response from an
authoritative server.
(http://rubygems.org/gems/eventmachine-1.0.0.beta.3-x86-mingw32.gem)

I’m a bit stumped to be honest. Getting chef workstation and clients setup on
Windows infrastructure is quite troublesome. I think it will get better. And
to be honest I’m not that up to speed on running Ruby on Windows so I’ll try
and hang in there :wink:

Any tips would be greatly appreciated.

Thanks

Ben

Le 2012-11-28 07:08, Ben Sullivan a écrit :

Hi

I am trying
to seed some devops goodness on client site at present.

It's a
Microsoft shop.

They have an NTLM proxy.

I have installed chef
using the Windows installer on my local dev workstation.

I want to
install the knife-windows plugin to start playing with the remote

management stuff over winrm.

After some googling I realised how
rubygems doesn't play nicely with NTLM.

This looked like the best
option for me:

http://www.stuartellis.eu/articles/installing-ruby/#install-windows
[1]

with the slight variation using this command:

copy
C:opscodechefembeddedlibrubygems1.9.1gemsrubysspi-1.3.1spar.rb

C:opscodechefembeddedlibrubysite_ruby1.9.1

I retried the gem
install command but I get the following error:

C:opscode>gem
install knife-windows
ERROR: While executing gem ...
(Gem::RemoteFetcher::FetchError)
SocketError: getaddrinfo: This is
usually a temporary error during hostname
resolution and means that
the local server did not receive a response from an
authoritative
server.

(http://rubygems.org/gems/eventmachine-1.0.0.beta.3-x86-mingw32.gem
[2])

I'm a bit stumped to be honest. Getting chef workstation and
clients setup on
Windows infrastructure is quite troublesome. I think
it will get better. And
to be honest I'm not that up to speed on
running Ruby on Windows so I'll try
and hang in there :wink:

Any
tips would be greatly appreciated.

Thanks

Ben

Usually I use
ntlmaps http://ntlmaps.sourceforge.net/ to proxy before the ntlm proxy
wich allow to use a basic proxy for ruby and other tools not working
well with ntlm auth.

That's said your gem command seems to do not use
proxy (should be an env var somewhere missing).

Regards

Tensibai

Links:

[1]
http://www.stuartellis.eu/articles/installing-ruby/#install-windows
[2]
http://rubygems.org/gems/eventmachine-1.0.0.beta.3-x86-mingw32.gem