diff options
author | Tails developers <amnesia@boum.org> | 2012-05-22 11:25:07 +0200 |
---|---|---|
committer | Tails developers <amnesia@boum.org> | 2012-05-22 11:25:07 +0200 |
commit | 83ac60274fd5a679c38e504e9ce9620d03997c4f (patch) | |
tree | be09cea212fe06d1aba79784624b7e5845d9c9dc | |
parent | a4c32241ae17a119e165dff575458f774a25b0b2 (diff) |
vagrant: Factor out in-VM proxy URL
-rw-r--r-- | Rakefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -37,6 +37,9 @@ EXPORTED_VARIABLES = ['http_proxy', 'MKSQUASHFS_OPTIONS', 'TAILS_RAM_BUILD', 'TA # Let's save the http_proxy set before playing with it EXTERNAL_HTTP_PROXY = ENV['http_proxy'] +# In-VM proxy URL +INTERNEL_HTTP_PROXY = "http://#{VIRTUAL_MACHINE_HOSTNAME}:3142" + def current_vm_memory env = Vagrant::Environment.new(:cwd => VAGRANT_PATH, :ui_class => Vagrant::UI::Basic) uuid = env.primary_vm.uuid @@ -107,7 +110,7 @@ task :parse_build_options do abort "No HTTP proxy set, but one is required by TAILS_BUILD_OPTIONS. Aborting." unless EXTERNAL_HTTP_PROXY ENV['http_proxy'] = EXTERNAL_HTTP_PROXY when 'vmproxy' - ENV['http_proxy'] = "http://#{VIRTUAL_MACHINE_HOSTNAME}:3142" + ENV['http_proxy'] = INTERNEL_HTTP_PROXY when 'noproxy' ENV['http_proxy'] = nil # SquashFS compression settings |