-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proxy support for test-kitchen (vagrant adapter) #64
Comments
Hi Julien, Bad news: As test-kitchen doesn't use Vagrant's Chef provisioners, but invokes Chef directly over SSH, #21 has no effect. Bad news: As test-kitchen shells out to invoke Vagrant, we don't have any access to it's configuration. At the time vagrant-proxyconf kicks in, the config file has been already evaluated, so we can't even try dirty tricks for manipulating it at run time. Good news: I'm quite sure #58 will fix this too. I'll leave this open so we remember to verify it. |
@tmatilai I actually have this working locally. |
I made a modification to test-kitchen in my pull request feel free to confirm it. |
Oh, I also forgot that Chef doesn't even read |
Thank you @johnbellone for the test-kitchen pull request, it will make my live much easier (I live in a developing country where we have 20k/s Internet... when it works). @tmatilai yes, chef does not honor http_proxy environment variables yet, so have to configure it explicitly in client.rb. |
I'm closing this as #58 is implemented and released, and there isn't much more we can do in this plugin. Another good news is that Chef 11.14 should finally support environment variables. |
such an hard time to get this working :/ thx @jperville for the ~/.kitchen/config.yml sample |
Hello @tmatilai,
It took me a while to understand how to configure chef running in
test-kitchen
to use my proxy settings. Unlike in #21 there is no special provisioner that can be detected inconfig.vm.provisioners
then configured.After reading test-kitchen/kitchen-vagrant#90 and especially @esciara's comments, I ended up putting the following content in my
~/.kitchen/config.yml
.This should work with both the chef_zero and chef_solo provisioners that are used under the hood by the vagrant adapter for test-kitchen.
It would be nice to have
vagrant-proxyconf
detect when it is running through kitchen-vagrant (test-kitchen's vagrant adapter) and fill these attributes automatically.The text was updated successfully, but these errors were encountered: