aboutsummaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
Diffstat (limited to 'files')
-rw-r--r--files/vserver/build_vserver18
1 files changed, 9 insertions, 9 deletions
diff --git a/files/vserver/build_vserver b/files/vserver/build_vserver
index 260889c..9f69c7f 100644
--- a/files/vserver/build_vserver
+++ b/files/vserver/build_vserver
@@ -1,11 +1,11 @@
#!/bin/bash
-NAME=$1
-CONTEXT=$2
-RELEASE=$3
-DEBOOTSTRAP_MIRROR=$4
-VHOSTNAME=$5
-VINTERFACE=$6
+NAME="$1"
+CONTEXT="$2"
+RELEASE="$3"
+DEBOOTSTRAP_MIRROR="$4"
+VHOSTNAME="$5"
+VINTERFACE="$6"
if [ $VHOSTNAME != "none" ]; then
VHOSTNAME="--hostname $VHOSTNAME"
@@ -33,11 +33,11 @@ echo "127.0.0.1 $NAME" >> $TARGET/etc/hosts
# Setup is complete, now do the post-install stuff
vserver $NAME start
vserver $NAME exec dselect update
-# install a few packages needed for facter
-vserver $NAME exec apt-get -y install lsb-release iproute
+# install a few needed packages
+vserver $NAME exec apt-get -y install lsb-release iproute cron sudo openssh-server
+
#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
echo "VServer $NAME created"