Last active
November 7, 2018 03:29
-
-
Save talk2bryan/25a295301b24df89403c77494eb007c4 to your computer and use it in GitHub Desktop.
Vagrant config file for setting up Ubuntu development environment for devs on UofMeme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ENV['VBOX_INSTALL_PATH'] = ENV['VBOX_MSI_INSTALL_PATH'] | |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
$aws_pem = <<SCRIPT | |
chmod 400 /home/vagrant/.ssh/uofmeme64.pem | |
chmod 755 /home/vagrant/step_1.sh | |
chmod 755 /home/vagrant/step_2.sh | |
chmod 755 /home/vagrant/cleanup.sh | |
SCRIPT | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure("2") do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at | |
# https://docs.vagrantup.com. | |
config.vm.box = "ubuntu/xenial64" | |
# Copy memedev.pev to ~/.ssh dir | |
config.vm.provision "file", source: "~/.ssh/uofmeme64.pem", destination: "/home/vagrant/.ssh/uofmeme64.pem" | |
config.vm.provision "file", source: "./step_1.sh", destination: "/home/vagrant/step_1.sh" | |
config.vm.provision "file", source: "./step_2.sh", destination: "/home/vagrant/step_2.sh" | |
config.vm.provision "file", source: "./cleanup.sh", destination: "/home/vagrant/cleanup.sh" | |
config.vm.provision "shell", inline: $aws_pem | |
config.vm.provider "virtualbox" do |v| | |
# Name the VM window | |
v.customize ["modifyvm", :id, "--name", "The Bermuda Rectangle"] | |
# Enable GUI | |
v.gui = true | |
# Give VM a max CPU usage of 90% of host machine. | |
v.customize ["modifyvm", :id, "--cpuexecutioncap", "90"] | |
# Share clipboard between host machine and VM | |
v.customize ["modifyvm", :id, "--clipboard", "bidirectional"] | |
# Enable Drag and Drop between VM and host machine. | |
v.customize ["modifyvm", :id, "--draganddrop", "bidirectional"] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment