Selaa lähdekoodia

Merge pull request #57 from kencochrane/vagrant-fix

upgraded kernel to 3.5.0-25 to fix a kernel bug
Solomon Hykes 12 vuotta sitten
vanhempi
commit
71e1afcc56
2 muutettua tiedostoa jossa 12 lisäystä ja 3 poistoa
  1. 2 2
      Vagrantfile
  2. 10 1
      puppet/modules/docker/manifests/init.pp

+ 2 - 2
Vagrantfile

@@ -7,11 +7,11 @@ Vagrant::Config.run do |config|
   # please see the online documentation at vagrantup.com.
 
   # Every Vagrant virtual environment requires a box to build off of.
-  config.vm.box = "quantal64"
+  config.vm.box = "quantal64_3.5.0-25"
 
   # The url from where the 'config.vm.box' box will be fetched if it
   # doesn't already exist on the user's system.
-  config.vm.box_url = "http://unworkable.org/~niallo/quantal64.box"
+  config.vm.box_url = "http://get.docker.io/vbox/ubuntu/12.10/quantal64_3.5.0-25.box"
 
   # Boot with a GUI so you can see the screen. (Default is headless)
   # config.vm.boot_mode = :gui

+ 10 - 1
puppet/modules/docker/manifests/init.pp

@@ -7,7 +7,11 @@ class docker {
 
     Package { ensure => "installed" }
 
-    package { ["lxc", "debootstrap", "wget", "bsdtar", "git"]: }
+    package { ["lxc", "debootstrap", "wget", "bsdtar", "git",
+               "linux-image-3.5.0-25-generic",
+               "linux-image-extra-3.5.0-25-generic",
+               "virtualbox-guest-utils",
+               "linux-headers-3.5.0-25-generic"]: }
 
     notify { "docker_url = $docker_url": withpath => true }
 
@@ -50,6 +54,11 @@ class docker {
         creates => "/usr/local/bin/dockerd"
     }
 
+    exec { "vbox-add" :
+        require => Package["linux-headers-3.5.0-25-generic"],
+        command => "/etc/init.d/vboxadd setup",
+    }
+
     service { "dockerd" :
         ensure => "running",
         start => "/sbin/initctl start dockerd",