Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# -*- 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.define "vm_name" do |vm_name|
vm_name.vm.box = "ubuntu/trusty64"
#vm_name.vm.box = "chef/centos-6.5"
vm_name.vm.network :private_network, ip: "192.168.33.10"
vm_name.vm.hostname = "hostname"
vm_name.vm.network :forwarded_port, id: "ssh", guest: 22, host: 2222
vm_name.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "2048"]
end
vm_name.vm.provision "shell", path: "provision.sh"
end
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.scope = :box
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment