Skip to content

Instantly share code, notes, and snippets.

@garyachy
Last active November 6, 2017 09:03
Show Gist options
  • Save garyachy/b30fc577dd599bd788e166dd9aa6ac6a to your computer and use it in GitHub Desktop.
Save garyachy/b30fc577dd599bd788e166dd9aa6ac6a to your computer and use it in GitHub Desktop.
vagrant configuration file
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "trusty64"
config.vm.provision :shell, path: "../bootstrap.sh"
config.vm.network "public_network", bridge: "br-1", ip: "192.168.56.1"
config.vm.network "public_network", bridge: "br-2", ip: "192.168.57.1"
config.vm.network "public_network", bridge: "br-3", ip: "192.168.58.1"
config.vm.provider :virtualbox do |vb|
# # Don't boot with headless mode
# vb.gui = true
#
# # Use VBoxManage to customize the VM. For example to change memory:
vb.customize ["modifyvm", :id, "--memory", "1024"]
vb.customize ["modifyvm", :id, "--cpuexecutioncap", "50"]
vb.customize ["modifyvm", :id, "--ioapic", "on"]
vb.customize ["modifyvm", :id, "--cpus", "4"]
end
end
Copy link

ghost commented Nov 6, 2017

where i can find the bootstrap.sh file that you have used in the above vagrant file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment