diff options
Diffstat (limited to 'files/vserver/build_vserver')
-rw-r--r-- | files/vserver/build_vserver | 7 |
1 files changed, 3 insertions, 4 deletions
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 |