forked from dougm/packer-esxi
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVagrantfile
30 lines (23 loc) · 848 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Vagrant.require_plugin "vagrant-esxi"
File.open("version.txt", 'w') do |f|
f.write(Vagrant::VERSION)
end
Vagrant.configure("2") do |config|
config.ssh.default.username = "root"
config.ssh.shell = "sh"
config.vm.hostname = "esxi"
config.vm.synced_folder ".", "/vagrant", nfs: true
[:vmware_workstation, :vmware_fusion].each do |name|
config.vm.provider name do |v,override|
config.vm.provision "shell", inline: "echo Using VMware provisioner"
config.vm.box = "vmware_esxi55"
config.vm.box_url = "./vmware_esxi55.box"
v.gui = true
v.vmx["memsize"] = "65536"
v.vmx["numvcpus"] = "12"
v.vmx["cpuid.coresPerSocket"] = "6"
end
end
config.vm.provision "shell", privileged: false, path: "provision.sh"
config.vm.provision "shell", inline: "echo Configuration complete"
end