Skip to content

Instantly share code, notes, and snippets.

@rande
Created November 12, 2013 22:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rande/7440228 to your computer and use it in GitHub Desktop.
Save rande/7440228 to your computer and use it in GitHub Desktop.
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.ssh.forward_agent = true
config.vm.define "default", primary: true do |web|
web.vm.box = "ubuntu13_04"
web.vm.box_url = "https://dl.dropboxusercontent.com/s/eo85etnrthnrrfn/ubuntu_13_04.box"
web.vm.network :private_network, ip: "192.168.33.10"
# used to have a unique settings between hosts
web.vm.synced_folder ".", "/vagrant", :nfs => true, :mount_options => ['nolock,vers=3,tcp']
web.vm.synced_folder ".", "/data", :nfs => true, :mount_options => ['nolock,vers=3,tcp']
# Configure Virtualbox settings
web.vm.provider :virtualbox do |vm|
#vm.gui = true
vm.customize ["modifyvm", :id, "--cpus", 2]
vm.customize ["modifyvm", :id, "--memory", 2048]
end
# Configure VMWare Fusion
config.vm.provider :vmware_fusion do |vm|
vm.vmx["memsize"] = "2048"
vm.vmx["numvcpus"] = "4"
end
# Configure puppet provisionning
web.vm.provision :puppet do |puppet|
puppet.manifest_file = "site.pp"
puppet.manifests_path = "puppet/manifests"
# --verbose --debug
puppet.options = "--confdir=/vagrant/puppet --modulepath=/vagrant/puppet/modules:/vagrant/puppet/roles --environment=vagrant"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment