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

Create ~/.kitchen/config.yml file #47

Closed
dougireton opened this issue Nov 9, 2015 · 0 comments
Closed

Create ~/.kitchen/config.yml file #47

dougireton opened this issue Nov 9, 2015 · 0 comments
Labels
Milestone

Comments

@dougireton
Copy link
Contributor

Move automagical proxy settings to ~/.kitchen/config.yml file

<% proxy_vars = {} %>
<% %w(http_proxy https_proxy no_proxy).each do |envvar| %>
<%   if ENV.key?(envvar) %>
<%     proxy_vars[envvar] = ENV[envvar] %>
<%   end %>
<% end %>

---
driver:
  name: vagrant

<% if proxy_vars.size > 0 %>
driver_config:
<% %w(http_proxy https_proxy no_proxy).each do |envvar| %>
<% if ENV.key?(envvar) %>
  <%= envvar %>: <%= ENV[envvar] %>
<% end %>
<% end %>

<% end %>
@dougireton dougireton added this to the 2.0 milestone Feb 18, 2016
oifland pushed a commit that referenced this issue May 16, 2016
Add a config file to pass through the http_proxy, https_proxy, and no_proxy values automatically to kitchen instances, with an option to disable it.

The config file is only added if there isn't already a ~/.kitchen/config.yml file.

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

No branches or pull requests

1 participant