nice! setting that in the global Vagrantfile is much cleaner than adding 
another provision step to every host!

On Wednesday, December 30, 2015 at 8:50:23 AM UTC-8, Torben Knerr wrote:
>
> You mean this one?
>
> https://github.com/tmatilai/vagrant-proxyconf/
> Am 30.12.2015 3:04 nachm. schrieb "pixel fairy" <[email protected] 
> <javascript:>>:
>
>> and theres this, 
>> https://github.com/fgrehm/vagrant-cachier
>>
>> On Tuesday, December 29, 2015 at 10:52:13 PM UTC-8, pixel fairy wrote:
>>>
>>> its easy to forget the the vagrant file is run as a ruby script. 
>>>
>>> thanks to reading this, 
>>> http://blog.devteaminc.co/conditional-vagrant-environments/
>>>
>>> heres a way to use an apt proxy for yourself, but not use one if its not 
>>> defined. same thing would probably work for yum, get-package etc. i keep a 
>>> permanent vm running with squid-deb-proxy. 
>>>
>>> your_shell$ export APTPROXY="http:1.2.3.4:8000"
>>>
>>> in your Vagrantfile, 
>>>
>>> config.vm.provision "shell", path: "aptproxy.sh", args: ENV['APTPROXY'] 
>>> if ENV.has_key?('APTPROXY')
>>>
>>> aptproxy.sh
>>> #!/bin/sh
>>>
>>> cat<< EOF > /etc/apt/apt.conf.d/02proxy
>>> Acquire::http::proxy "$1";
>>> EOF
>>> apt-get update
>>>
>>>
>>>
>>> -- 
>> 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 [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/vagrant-up/9a82e0c5-8dc5-49fd-a58c-8b9cb90b31e0%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/vagrant-up/9a82e0c5-8dc5-49fd-a58c-8b9cb90b31e0%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/32b92437-d19a-4ef7-b7b4-8af1cc5cac2a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to