Skip to content

Instantly share code, notes, and snippets.

@seanhagen
Created November 26, 2013 20:07
Show Gist options
  • Save seanhagen/7665262 to your computer and use it in GitHub Desktop.
Save seanhagen/7665262 to your computer and use it in GitHub Desktop.
Example Vagrantfile
# -*- 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 "development", primary: true do |dev|
dev.vm.box = "precise-64"
dev.vm.box_url = "http://files.vagrantup.com/precise64.box"
dev.vm.host_name = "dev.api.novi"
dev.vm.network :private_network, ip: "192.168.50.2"
dev.ssh.forward_agent = true
dev.vm.synced_folder ".", "/vagrant", :mount_options => ["dmode=774", "fmode=774"]
dev.vm.provision :puppet do |puppet|
puppet.manifests_path = "manifests"
puppet.manifest_file = "site.pp"
puppet.module_path = "modules"
end
dev.vm.provider :virtualbox do |vb|
vb.gui = false
vb.customize ["modifyvm", :id, "--memory", "512"]
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment