aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-01-08 19:15:28 -0200
committerSilvio Rhatto <rhatto@riseup.net>2012-01-08 19:15:28 -0200
commit8bc2fb2fbd283554abf7ac120d74a29ebd7f0d0a (patch)
tree4ac03e724474e8fec5793c7da051b94ce3d28a61
parenta4d6f1278fbee39ff529d6298eefdb939e56bed9 (diff)
downloadpuppet-virtual-8bc2fb2fbd283554abf7ac120d74a29ebd7f0d0a.tar.gz
puppet-virtual-8bc2fb2fbd283554abf7ac120d74a29ebd7f0d0a.tar.bz2
Changing the way packages are installed ad build_vserver
-rw-r--r--files/vserver/build_vserver7
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