From 8bc2fb2fbd283554abf7ac120d74a29ebd7f0d0a Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 8 Jan 2012 19:15:28 -0200 Subject: Changing the way packages are installed ad build_vserver --- files/vserver/build_vserver | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'files/vserver') diff --git a/files/vserver/build_vserver b/files/vserver/build_vserver index 1d9d6fe..3f606ba 100644 --- a/files/vserver/build_vserver +++ b/files/vserver/build_vserver @@ -6,6 +6,7 @@ RELEASE="$3" DEBOOTSTRAP_MIRROR="$4" VHOSTNAME="$5" VINTERFACE="$6" +PACKAGES="lsb-release openssl iproute cron sudo openssh-server locales" if [ "$VHOSTNAME" != "none" ]; then VHOSTNAME_OPT="--hostname $VHOSTNAME" @@ -18,7 +19,8 @@ fi # create basic vserver vserver $NAME build -n $NAME --context $CONTEXT \ - $VHOSTNAME_OPT $VINTERFACE_OPT -m debootstrap -- -d $RELEASE -m $DEBOOTSTRAP_MIRROR || exit 1 + $VHOSTNAME_OPT $VINTERFACE_OPT -m debootstrap -- \ + -d $RELEASE -m $DEBOOTSTRAP_MIRROR --include=$PACKAGES || exit 1 # copy in some some defaults TARGET=/etc/vservers/$NAME/vdir/ @@ -39,9 +41,6 @@ vserver $NAME start || exit 1 vserver $NAME exec apt-get update || exit 1 vserver $NAME exec apt-get upgrade || exit 1 -# Install a few needed packages -vserver $NAME exec apt-get -y install lsb-release openssl iproute cron sudo openssh-server locales || exit 1 - #vserver $NAME exec dpkg --install var/lib/puppet/modules/dbp/puppet_current.deb #vserver $NAME exec apt-get -fy install #echo "Please sign now: puppetca --sign $NAME" >&2 -- cgit v1.2.3