Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: cba3b9fa2e
Fetching contributors…

Cannot retrieve contributors at this time

executable file 29 lines (22 sloc) 0.62 kB
#!/bin/bash
# Die on any error
set -e
# Set timezone to UTC
echo "Etc/UTC" > /etc/timezone
dpkg-reconfigure --frontend noninteractive tzdata
# Change hostname to 'vagrant'
oldname=$(hostname)
hostname vagrant
sed -i -e s/$oldname/vagrant/g /etc/hosts
# Install software
aptitude update
aptitude install -y puppet emacs23-nox git-core
# bind mount /vagrant/puppet into /etc/puppet
mv /etc/puppet /etc/puppet.old
mkdir /etc/puppet
mount --bind /vagrant/puppet /etc/puppet
# optionally run the deploy.sh file if it exists
if [ -x /vagrant/deploy.sh ]; then
echo "Executing deploy.sh..."
/vagrant/deploy.sh
fi
Jump to Line
Something went wrong with that request. Please try again.