Skip to content

Instantly share code, notes, and snippets.

@robinwl
Created January 16, 2015 19:16
Show Gist options
  • Save robinwl/0853b6c8b089a6a7a998 to your computer and use it in GitHub Desktop.
Save robinwl/0853b6c8b089a6a7a998 to your computer and use it in GitHub Desktop.
Vagrantfile Trusty64
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "robin/trusty64"
config.vm.hostname = "trusty64"
config.vm.provision "shell", inline: $shell
if Vagrant.has_plugin?("vagrant-vbguest") then
config.vbguest.auto_update = false
end
end
$shell = <<-CONTENTS
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get dist-upgrade -y
echo "cd /vagrant" >> /home/vagrant/.bashrc
echo "cd /vagrant" >> /root/.bashrc
chmod -x /etc/update-motd.d/*
CONTENTS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment