~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-17 13:54:25 UTC
  • mto: This revision was merged to the branch mainline in revision 2130.
  • Revision ID: zygmunt.krynicki@canonical.com-20130517135425-cxcenxx5t0qrtbxd
checkbox-ng: add CheckBoxNG sub-project

CheckBoxNG (or lowercase as checkbox-ng, pypi:checkbox-ng) is a clean
implementation of CheckBox on top of PlainBox. It provides a new
executable, 'checkbox' that has some of the same commands that were
previously implemented in the plainbox package.

In particular CheckBoxNG comes with the 'checkbox sru' command
(the same one as in plainbox). Later on this sub-command will be removed
from plainbox.

CheckBoxNG depends on plainbox >= 0.3

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