Skip to content
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

Support setting *_proxy env vars for Vagrant on the host #53

Open
tmatilai opened this issue Feb 21, 2014 · 2 comments
Open

Support setting *_proxy env vars for Vagrant on the host #53

tmatilai opened this issue Feb 21, 2014 · 2 comments

Comments

@tmatilai
Copy link
Owner

It might be useful for having a config option for setting HTTP_PROXY etc. environment variables on the Vagrant run. This could maybe even be the default on "local" providers like VirtualBox (especially with #38), while normally doesn't make sense with cloud providers.

The variables would set proxy for Vagrant's downloader which is used for downloading boxes, Chef's "install.sh". But wouldn't help with vagrant plugin install as plugins are not loaded by vagrant plugin commands.

Ref: #52 (comment)

@johnbellone
Copy link
Contributor

@tmatilai What do you mean by setting them on the Vagrant run? I set them at the beginning of the run using Dotenv.load and it seems to work throughout the provisioning.

@tmatilai
Copy link
Owner Author

I planned on setting the env vars when the plugin is loaded. But not overriding existing variables. Or maybe to hook to environment loading as there is no hurry to set the variables.

Using dotenv or just manually setting them in Vagrantfile has the same effect. But Vagrantfile is not evaluated with vagrant plugin and (maybe?) vagrant box commands. And it is not clear nor documented that users need to set the variables in the first place so it would help if we could do it automatically for vbox etc. providers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants