matschaffer/knife-solo — pull request #16 by patatepartie (2012-02-10 08:43:52+00:00)
Title: Using user's environment variables, host behind a proxy and CentOS 5.5 repository conflict

I had trouble running knife solo with the host sitting behind a proxy.
First, Net::Ssh ignores the user's env variables. We can either pass variables to the env method of the channel object, or source a file on the host previous to each command.

As explain in the comment, rpm doesn't work behind a proxy, at least for the version installed on my server (4.4.2.3). I had to fetch the rpm using curl before calling rpm -U.

One last trouble is in the priority of repositories. I don't know why but the ruby version 1.8.5 in the repository updates has priority over the 1.8.7 in the rbel repository. Disabling the all repository except rbel seems to do the trick.

I'm not sure if this is too specific to my installs or if it broke anything else.
I ran the unit test (even added one) but didn't run the integration ones against ec2.