Closed laradji closed 10 years ago
There is some support for this in Test Kitchen proper. If you set http_proxy
and/or https_proxy
in a driver_config:
block, these environment variables will be in the remote SSH commands' environment. Usually this covers curl, wget, chef, apt, and a few others.
For example:
---
driver_plugin: vagrant
driver_config:
http_proxy: http://10.0.0.1:8123
https_proxy: https://10.0.0.1:8123
Note that you'd need to have an HTTP caching proxy server on that host and port. I've run a local polipo instance on my workstation and used the public IP address of it (stuck in a .kitchen.local.yml
file to override defaults).
Hope this helps!
Hi,
I'am not sure if this his the good place to ask for this feature, but it will really help to speed up testing if we can set proxy_settings for the chef-solo to be run.