From d4da0a0ddbb3ec1979941bc3d2425aab3a6b3f19 Mon Sep 17 00:00:00 2001 From: Ken Cochrane Date: Mon, 11 Mar 2013 17:48:39 -0700 Subject: [PATCH] changed the docker version in vagrant to pull down latest version, moved some things around and put docker and dockerd into /usr/local/bin now. Also added git to install package list --- puppet/modules/docker/manifests/init.pp | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/puppet/modules/docker/manifests/init.pp b/puppet/modules/docker/manifests/init.pp index 2923b302fc..ed3dd62b63 100644 --- a/puppet/modules/docker/manifests/init.pp +++ b/puppet/modules/docker/manifests/init.pp @@ -1,14 +1,15 @@ class docker { # update this with latest docker binary distro - $docker_url = "https://dl.dropbox.com/u/20637798/docker.tar.gz" + $docker_url = "http://docker.io.s3.amazonaws.com/builds/$kernel/$hardwaremodel/docker-master.tgz" # update this with latest go binary distry $go_url = "http://go.googlecode.com/files/go1.0.3.linux-amd64.tar.gz" - Package { ensure => "installed" } - package { ["lxc", "debootstrap", "wget", "bsdtar"]: } + package { ["lxc", "debootstrap", "wget", "bsdtar", "git"]: } + + notify { "docker_url = $docker_url": withpath => true } exec { "debootstrap" : require => Package["debootstrap"], @@ -26,7 +27,7 @@ class docker { exec { "fetch-docker" : require => Package["wget"], command => "/usr/bin/wget -O - $docker_url | /bin/tar xz -C /home/vagrant", - creates => "/home/vagrant/docker/dockerd" + creates => "/home/vagrant/docker-master" } file { "/etc/init/dockerd.conf": @@ -39,10 +40,16 @@ class docker { exec { "copy-docker-bin" : require => Exec["fetch-docker"], - command => "/bin/cp /home/vagrant/docker/docker /usr/local/bin", + command => "/bin/cp /home/vagrant/docker-master/docker /usr/local/bin", creates => "/usr/local/bin/docker" } + exec { "copy-dockerd-bin" : + require => Exec["fetch-docker"], + command => "/bin/cp /home/vagrant/docker-master/dockerd /usr/local/bin", + creates => "/usr/local/bin/dockerd" + } + service { "dockerd" : ensure => "running", start => "/sbin/initctl start dockerd",