Skip to content

Instantly share code, notes, and snippets.

@iley
Last active July 18, 2018 11:09
Show Gist options
  • Save iley/014437ada08fda966c1200a40349434a to your computer and use it in GitHub Desktop.
Save iley/014437ada08fda966c1200a40349434a to your computer and use it in GitHub Desktop.
basic vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
$script = <<-SCRIPT
echo Provisioning...
sed 's/^session.*pam_motd/# &/' -i /etc/pam.d/{sshd,login}
sed 's/^AcceptEnv LANG/# &/' -i /etc/ssh/sshd_config
sudo apt update
SCRIPT
Vagrant.configure("2") do |config|
config.vm.box = "bento/ubuntu-18.04"
# config.vm.network "private_network", ip: "192.168.33.10"
config.vm.provider "virtualbox" do |vb|
vb.memory = "2048"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment