config.vm.provision "shell", path: "aptproxy.sh", args: ENV['APTPROXY'] if ENV.has_key?('APTPROXY')
#!/bin/sh
cat<< EOF > /etc/apt/apt.conf.d/02proxy
Acquire::http::proxy "$1";
EOF
apt-get update
You mean this one?
https://github.com/tmatilai/vagrant-proxyconf/
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/9a82e0c5-8dc5-49fd-a58c-8b9cb90b31e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.