Skip to content

Commit

Permalink
Tools: Vagrant: define many Ubuntus
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker authored and rmackay9 committed Feb 13, 2018
1 parent 0a7ae22 commit bd33b70
Showing 1 changed file with 33 additions and 14 deletions.
47 changes: 33 additions & 14 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

config.vm.box = "ubuntu/zesty32"

# Provider-specific configuration so you can fine-tune various
# backing providers for Vagrant. These expose provider-specific options.
# Example for VirtualBox:
Expand All @@ -36,22 +34,43 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
vb.customize ["guestproperty", "set", :id, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-on-restore", "1"]
end

# The created VM sets PX4_WINTOOL=y to allow builds to proceed using shared folders with using symlinks.
# However shared folders are quite slow. If you have rsync installed then this is a faster way of building.
# In addition there are problems with px4-clean when using shared folders. Using rsync avoids this.
# config.vm.synced_folder ".", "/vagrant", type: "rsync", rsync__auto: true

# If you are on windows then you must use a version of git >= 1.8.x to update the submodules
# in order to build. Older versions of git use absolute paths for submodules which confuses things.
# If you are on windows then you must use a version of git >= 1.8.x
# to update the submodules in order to build. Older versions of git
# use absolute paths for submodules which confuses things.

config.vm.define "devenv", primary: true do |devenv|
config.vm.box = "ubuntu/zesty32"
config.vm.provision :shell, path: "Tools/vagrant/initvagrant.sh"
end
# removing this line causes "A box must be specified." error:
config.vm.box = "ubuntu/artful32"

config.vm.define "trusty64" do |trusty64|
# LTS, EOL April, 2019:
config.vm.define "trusty64", autostart: false do |trusty64|
config.vm.box = "ubuntu/trusty64"
config.vm.provision "trusty64", type: "shell", path: "Tools/vagrant/initvagrant.sh"
config.vm.name = "ArduPilot (Trusty64)"
end

# LTS, EOL April 2021
config.vm.define "xenial32", autostart: false do |xenial32|
config.vm.box = "ubuntu/xenial32"
config.vm.provision :shell, path: "Tools/vagrant/initvagrant.sh"
config.vm.name = "ArduPilot (Xenial32)"
config.vm.gui = true
end

# EOL January 2018
config.vm.define "zesty32", autostart: false do |zesty32|
config.vm.box = "ubuntu/zesty32"
config.vm.provision :shell, path: "Tools/vagrant/initvagrant.sh"
end

# EOL July 2018
config.vm.define "artful32", primary: true do |artful32|
config.vm.box = "ubuntu/artful32"
config.vm.provision :shell, path: "Tools/vagrant/initvagrant.sh"
end

config.vm.define "bionic32", autostart: false do |bionic32|
config.vm.box = "ubuntu/bionic32"
config.vm.provision :shell, path: "Tools/vagrant/initvagrant.sh"
end

end
Expand Down

0 comments on commit bd33b70

Please sign in to comment.