Skip to content

Instantly share code, notes, and snippets.

@glarizza
Created September 5, 2013 17:54
Show Gist options
  • Save glarizza/6453706 to your computer and use it in GitHub Desktop.
Save glarizza/6453706 to your computer and use it in GitHub Desktop.
# -*- 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 = 'centos'
# Fusion Settings
config.vm.provider :vmware_fusion do |v, override|
override.vm.box = 'centos-vmware'
v.vmx['memsize'] = '1024'
end
# Settings for Virtualbox
config.vm.provider :virtualbox do |v, override|
v.customize ['setextradata', :id, 'VBoxInternal2/SharedFoldersEnableSymlinksCreate/vagrant', '1']
v.customize ['modifyvm', :id, '--memory', '512']
end
config.vm.define :vmware do |node|
node.vm.network :private_network, ip: '192.168.13.2'
node.vm.hostname = 'vmware.puppetlabs.lan'
# Override Network Address and MAC Address
node.vm.provider :vmware_fusion do |v, override|
override.vm.network :private_network, ip: '33.33.33.3'
v.vmx["ethernet0.addressType"] = "static"
v.vmx["ethernet0.address"] = "00:11:22:33:44:55"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment