Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (17 sloc) 677 Bytes
# Set up Vagrant.
date > /etc/vagrant_box_build_time
# Add groups puppet and chef
groupadd puppet
groupadd chef
# Create the user vagrant with password vagrant
useradd -G sudo -p $(perl -e'print crypt("vagrant", "vagrant")') -m -s /bin/bash -N vagrant
# Install vagrant keys
mkdir -pm 700 /home/vagrant/.ssh
curl -Lo /home/vagrant/.ssh/authorized_keys \
chmod 0600 /home/vagrant/.ssh/authorized_keys
chown -R vagrant:vagrant /home/vagrant/.ssh
# Customize the message of the day
echo 'Welcome to your Vagrant-built virtual machine.' > /var/run/motd
# Install NFS client
apt-get -y install nfs-common
Jump to Line
Something went wrong with that request. Please try again.