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

Comments

Projects
None yet
1 participant
@dougireton
Contributor

dougireton commented Nov 9, 2015

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 cookbook and removed enhancement labels Jan 23, 2016

@dougireton dougireton added this to the 2.0 milestone Feb 18, 2016

oifland pushed a commit that referenced this issue May 16, 2016

Orion Ifland
Add ~/.kitchen/config.yml config file w/proxy pass-through
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

@dougireton dougireton closed this in #135 May 16, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment