Skip to content

Commit

Permalink
Unbreak vagrant config for non-parallels
Browse files Browse the repository at this point in the history
The current config has a bug. It wants to set a custom box for the
parallels VM provider but instead it overwrites the global config,
breaking the virtualbox provider (since that one can't use the parallels
box).

The correct way to do a per-provider box is with an override param.
  • Loading branch information
Valloric committed May 29, 2016
1 parent c563bec commit 8b18615
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ Vagrant.configure(2) do |config|
v.cpus = 2
end

config.vm.provider "parallels" do |v|
config.vm.box = 'parallels/ubuntu-14.04'
config.vm.provider "parallels" do |v, override|
override.vm.box = 'parallels/ubuntu-14.04'

v.memory = 3072
v.cpus = 4
Expand Down

0 comments on commit 8b18615

Please sign in to comment.