~jocave/checkbox/hybrid-amd-gpu-mods

« back to all changes in this revision

Viewing changes to support/demo-vms/trusty-plain-amd64/Vagrantfile

  • Committer: Zygmunt Krynicki
  • Date: 2013-05-29 07:50:30 UTC
  • mto: This revision was merged to the branch mainline in revision 2153.
  • Revision ID: zygmunt.krynicki@canonical.com-20130529075030-ngwz245hs2u3y6us
checkbox: move current checkbox code into checkbox-old

This patch cleans up the top-level directory of the project into dedicated
sub-project directories. One for checkbox-old (the current checkbox and all the
associated stuff), one for plainbox and another for checkbox-ng.

There are some associated changes, such as updating the 'source' mode of
checkbox provider in plainbox, and fixing paths in various test scripts that we
have.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# -*- mode: ruby -*-
2
 
# vi: set ft=ruby sw=2 ts=2 :
3
 
 
4
 
Vagrant.configure("2") do |config|
5
 
  # Use a basic trusty desktop image from git://github.com/zyga/vagrant-desktop-images.git
6
 
  config.vm.box = "trusty-desktop-amd64"
7
 
 
8
 
  # Tweak VirtualBox configuration for GUI applications
9
 
  config.vm.provider :virtualbox do |vb|
10
 
    vb.gui = true
11
 
    vb.customize ["modifyvm", :id, "--memory", 1024]
12
 
    vb.customize ["modifyvm", :id, "--vram", 64]
13
 
    vb.customize ["modifyvm", :id, "--accelerate3d", "on"]
14
 
  end
15
 
 
16
 
  # Setup apt proxy for faster package updates
17
 
  if ENV.key? "VAGRANT_APT_CACHE"
18
 
    # Setup an apt cache if one is available and explicitly configured
19
 
    config.vm.provision :shell, :inline => "echo 'Acquire::http { Proxy \"#{ENV['VAGRANT_APT_CACHE']}\"; };' > /etc/apt/apt.conf.d/00proxy"
20
 
  elsif File.exists? "/etc/apt-cacher-ng"
21
 
    # If apt-cacher-ng is installed on this machine then just use it.
22
 
    require 'socket'
23
 
    guessed_address = Socket.ip_address_list.detect{|intf| !intf.ipv4_loopback?}
24
 
    if guessed_address
25
 
      config.vm.provision :shell, :inline => "echo 'Acquire::http { Proxy \"http://#{guessed_address.ip_address}:3142\"; };' > /etc/apt/apt.conf.d/00proxy"
26
 
    end
27
 
  end
28
 
 
29
 
  # Update to have the latest packages
30
 
  config.vm.provision :shell, :inline => "apt-get update"
31
 
  config.vm.provision :shell, :inline => "DEBIAN_FRONTEND=noninteractive apt-get dist-upgrade --yes"
32
 
 
33
 
  # Ready :-)
34
 
end