Created
September 3, 2014 01:06
-
-
Save mbbroberg/47091388b4b462228d1f to your computer and use it in GitHub Desktop.
Vagrantfile for Taste Test (DevOps book)
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu-14.04" | |
config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box" | |
config.hostmanager.enabled = true | |
config.vm.define "puppy" do |puppy| | |
puppy.vm.host_name = "puppy.dev" | |
puppy.vm.network :private_network, ip: "192.168.33.10" | |
end | |
config.vm.define "kitty" do |kitty| | |
kitty.vm.host_name = "kitty.dev" | |
kitty.vm.network :private_network, ip: "192.168.33.11" | |
end | |
config.vm.define "master" do |master| | |
master.vm.host_name = "master.dev" | |
master.vm.network :private_network, ip: "192.168.33.12" | |
end | |
config.vm.provider :virtualbox do |vbox| | |
if vbox.host_name == "master.dev" | |
vbox.customize ["modifyvm", :id, "--memory", 2048] | |
vbox.customize ["modifyvm", :id, "--cpus", 2] | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment