Created
April 17, 2015 21:08
-
-
Save bbrodriges/3609f45c9a6228e0564f to your computer and use it in GitHub Desktop.
Vagrantfile to install 3 Ubuntu Trusty VMs with public DHCP network and rust from host archive
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
['bmo', 'finn', 'jake'].each do |name| | |
config.vm.define "#{name}" do |node| | |
node.vm.box = "ubuntu/trusty64" | |
node.vm.hostname = "#{name}" | |
node.vm.network "public_network", ip: "dhcp" | |
node.vm.provider "virtualbox" do |vb| | |
vb.memory = 256 | |
end | |
node.vm.box_check_update = false | |
# install rust from file | |
node.vm.provision "file", source: "rust.tar.gz", destination: "rust.tar.gz" | |
node.vm.provision "shell", inline: "mkdir rust && tar xf rust.tar.gz -C rust --strip-components 1 && sudo sh rust/install.sh && rm -rf rust*" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment