Skip to content

Commit

Permalink
vagrantfile: Workaround for the atlas.hashicorp.com redirect removal.
Browse files Browse the repository at this point in the history
This workaround is only for new users. Users who are/were using old
versions of Vagrant has to manually change the value of box
metadata_url. See hashicorp/vagrant#9442
  • Loading branch information
hackerkid authored and timabbott committed Feb 8, 2018
1 parent 9249454 commit 680983d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ if Vagrant::VERSION == "1.8.7" then
end
end

# Workaround: Vagrant removed the atlas.hashicorp.com to
# vagrantcloud.com redirect in February 2018. The value of
# DEFAULT_SERVER_URL in Vagrant versions less than 1.9.3 is
# atlas.hashicorp.com, which means that removal broke the fetching and
# updating of boxes (since the old URL doesn't work). See
# https://github.com/hashicorp/vagrant/issues/9442
Vagrant::DEFAULT_SERVER_URL.replace('https://vagrantcloud.com')

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

# For LXC. VirtualBox hosts use a different box, described below.
Expand Down

0 comments on commit 680983d

Please sign in to comment.