Created
August 26, 2015 13:45
-
-
Save mgedmin/61cb6a8fd6bfdc240e45 to your computer and use it in GitHub Desktop.
Transparent apt proxy for Vagrant VMs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
# vagrant plugin install vagrant-proxyconf | |
# apt-get install squid-deb-proxy-client | |
if Vagrant.has_plugin?("vagrant-proxyconf") | |
config.apt_proxy.http = `/usr/share/squid-deb-proxy-client/apt-avahi-discover` | |
# NB: you must 'vagrant provision' when you change networks, or the | |
# proxy config may be stale | |
end | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment