summaryrefslogtreecommitdiff
path: root/templates/Debian-8.0-amd64-netboot/vagrant.sh
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2015-04-29 14:23:31 +0200
committervarac <varacanero@zeromail.org>2015-04-29 14:23:31 +0200
commitfdd0c448125173a69582a59e4a969f4dabcb52e7 (patch)
tree77cff4140c9e92fb0d71a91118737682969714d9 /templates/Debian-8.0-amd64-netboot/vagrant.sh
parentbaa558a70efcba73f909752331aabb2056c74f50 (diff)
added templates/Debian-8.0-amd64-netboot based on original Debian-7.7.0-amd64-netboot veewee template
Diffstat (limited to 'templates/Debian-8.0-amd64-netboot/vagrant.sh')
-rw-r--r--templates/Debian-8.0-amd64-netboot/vagrant.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/templates/Debian-8.0-amd64-netboot/vagrant.sh b/templates/Debian-8.0-amd64-netboot/vagrant.sh
new file mode 100644
index 0000000..54c2a71
--- /dev/null
+++ b/templates/Debian-8.0-amd64-netboot/vagrant.sh
@@ -0,0 +1,21 @@
+# Set up Vagrant.
+
+date > /etc/vagrant_box_build_time
+
+# 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 \
+ 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub'
+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
+
+