{"id":20444118,"url":"https://github.com/tknerr/vagrant-proxy-test","last_synced_at":"2025-03-05T08:23:02.146Z","repository":{"id":9676666,"uuid":"11620072","full_name":"tknerr/vagrant-proxy-test","owner":"tknerr","description":"fiddling around with Vagrant and HTTP Proxies","archived":false,"fork":false,"pushed_at":"2013-08-26T06:19:27.000Z","size":68,"stargazers_count":1,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-15T21:08:03.784Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tknerr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-23T21:46:52.000Z","updated_at":"2014-09-15T19:41:33.000Z","dependencies_parsed_at":"2022-08-25T23:32:19.211Z","dependency_job_id":null,"html_url":"https://github.com/tknerr/vagrant-proxy-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tknerr%2Fvagrant-proxy-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tknerr%2Fvagrant-proxy-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tknerr%2Fvagrant-proxy-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tknerr%2Fvagrant-proxy-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tknerr","download_url":"https://codeload.github.com/tknerr/vagrant-proxy-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241990939,"owners_count":20054018,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T09:51:21.208Z","updated_at":"2025-03-05T08:23:02.114Z","avatar_url":"https://github.com/tknerr.png","language":"Shell","readme":"\nvagrant-proxy-test\n==================\n\nFiddling around with Proxy settings and Vagrant.\n\n\nSetting Proxy on the Host\n=========================\n\nThis is required if your host (i.e. the machnine hosting your Vagrant VMs) is behind a Tools.\n\nTools like [git](http://git-scm.org/), [vagrant-berkshelf](https://github.com/riotgames/vagrant-berkshelf) or [bindler](https://github.com/fgrehm/bindler) require the proxy to be configured correctly when you run `vagrant up`.\n\nThis is as simple as setting both the `HTTP_PROXY` and `HTTPS_PROXY` env vars on the host:\n```\n$ export HTTP_PROXY=http://my.proxy.org:8080\n$ export HTTPS_PROXY=http://my.proxy.org:8080\n```\n\nSetting Proxy on the Vagrant VM\n===============================\n\nAnother story is configuring a proxy on the Vagrant VM. \n\nFor example, your laptop (i.e. host) is running inside your corporate network which requires you to configure a proxy, but the Vagrant VM might be running in the AWS Cloud via the [vagrant-aws](https://github.com/mitchellh/vagrant-aws) provider and thus not require a proxy. On the other hand it might be running locally using the default virtualbox provider and then you need the same proxy settings.  \n\nTo configure the Vagrant VM for using a proxy set the `VAGRANT_HTTP_PROXY` env var on the host:\n```\n$ export VAGRANT_HTTP_PROXY=http://my.proxy.org:8080\n```\n\nThe `Vagrantfile` in this test project will pick up this env var and - depending on whether it is set or not - set/unset the proxy *inside* the Vagrant VM via a shell provisioner.\n\nConsiderations\n==============\n\n* [vagrant-omnibus](https://github.com/schisamo/vagrant-omnibus) does not support proxy configuration [yet](https://github.com/schisamo/vagrant-omnibus/pull/25)\n* even if we set the proxy variables via a separate shell provisionier the vagrant-omnibus plugin does not work because it kicks in before *any* of the provisioniers run\n* this will probably get much easier with [vagrant-proxyconf](https://github.com/tmatilai/vagrant-proxyconf/), once [#6](https://github.com/tmatilai/vagrant-proxyconf/pull/6) and [#13](https://github.com/tmatilai/vagrant-proxyconf/issues/13) are resolved\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftknerr%2Fvagrant-proxy-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftknerr%2Fvagrant-proxy-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftknerr%2Fvagrant-proxy-test/lists"}