2
# vi: set ft=ruby sw=2 ts=2 :
4
Vagrant::Config.run do |config|
6
# Define a Ubuntu Server image (cloud) for the 12.04 release (precise)
7
config.vm.define :precise do |precise_config|
8
precise_config.vm.box = "precise-cloud-i386"
9
precise_config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-i386-vagrant-disk1.box"
12
# Define a Ubuntu Server image (cloud) for the 12.10 release (quantal)
13
config.vm.define :quantal do |quantal_config|
14
quantal_config.vm.box = "quantal-cloud-i386"
15
quantal_config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/quantal/current/quantal-server-cloudimg-i386-vagrant-disk1.box"
18
# Define a Ubuntu Server image (cloud) for the 13.04 release (raring)
19
config.vm.define :raring do |raring_config|
20
raring_config.vm.box = "raring-cloud-i386"
21
raring_config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/raring/current/raring-server-cloudimg-i386-vagrant-disk1.box"
24
# For debugging and later future GUI testing
25
if ENV.key? "VAGRANT_GUI"
26
config.vm.boot_mode = :gui
29
# Setup an apt cache if one is available
30
if ENV.key? "VAGRANT_APT_CACHE"
31
config.vm.provision :shell, :inline => "echo 'Acquire::http { Proxy \"#{ENV['VAGRANT_APT_CACHE']}\"; };' > /etc/apt/apt.conf"
34
# Update to have the latest packages, this is needed because the image comes
35
# with an old (and no longer working) apt cache and links to many packages no
37
config.vm.provision :shell, :inline => "apt-get update && DEBIAN_FRONTEND=noninteractive apt-get dist-upgrade --yes"
38
# Install package that provides add-apt-repository
39
config.vm.provision :shell, :inline => "apt-get install --yes python-software-properties"
40
# Add the checkbox-dev/ppa ppa with daily builds
41
config.vm.provision :shell, :inline => "add-apt-repository ppa:checkbox-dev/ppa"
42
# Update apt cache again
43
config.vm.provision :shell, :inline => "apt-get update"
45
config.vm.provision :shell, :inline => "apt-get install --yes plainbox"