Skip to content

Instantly share code, notes, and snippets.

@heshed
Last active October 4, 2015 04:16
Show Gist options
  • Save heshed/0ab472f75fd5cf93b956 to your computer and use it in GitHub Desktop.
Save heshed/0ab472f75fd5cf93b956 to your computer and use it in GitHub Desktop.
Vagrantfile.example
# -*- 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.ssh.insert_key = false
config.vm.box = "boxname"
config.vm.box_url = "box-url"
config.vm.hostname = "hostname"
config.vm.network "private_network", ip: "192.168.77.20"
config.vm.synced_folder "guest", "host", create: true, owner: "root", group: "root"
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--memory", 2048]
vb.customize ["modifyvm", :id, "--cpus", 4]
end
config.vm.provision "shell" do |shell|
shell.path = "my-shell-path"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment