From bdb8150a06ed611042973fc2af082346f4186397 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Tue, 26 Mar 2013 22:03:31 -0300 Subject: [PATCH] Install puppet 3.1.1 on base quantal64 box --- boxes/quantal64/download-ubuntu | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/boxes/quantal64/download-ubuntu b/boxes/quantal64/download-ubuntu index f7b9d9d..8eef000 100755 --- a/boxes/quantal64/download-ubuntu +++ b/boxes/quantal64/download-ubuntu @@ -21,8 +21,8 @@ cleanup() write_sourceslist() { # $1 => path to the rootfs - # $2 => architecture we want to add + # TODO: Mirrors sometimes are giving us some 404s MIRROR=${MIRROR:-mirror://mirrors.ubuntu.com/mirrors.txt} SECURITY_MIRROR=${SECURITY_MIRROR:-http://security.ubuntu.com/ubuntu} @@ -35,7 +35,7 @@ EOF download_ubuntu() { - packages=vim,ssh,curl,wget,bash-completion,manpages,puppet + packages=vim,ssh,curl,wget,bash-completion,manpages echo "installing packages: $packages" trap cleanup EXIT SIGHUP SIGINT SIGTERM @@ -101,3 +101,11 @@ if [ -d "${cache}/rootfs-${arch}" ]; then fi download_ubuntu $cache $arch $release + +rootfs="${cache}/rootfs-${arch}" + +echo "installing puppet" +wget http://apt.puppetlabs.com/puppetlabs-release-precise.deb -O "${rootfs}/tmp/puppetlabs-release-${release}.deb" +chroot $rootfs dpkg -i "/tmp/puppetlabs-release-${release}.deb" +chroot $rootfs apt-get update +chroot $rootfs apt-get install puppet -y