-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
57 lines (49 loc) · 1.5 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.hostname = "webpi-installer-berkshelf"
config.vm.box = "windows2008r2"
# Berkshelf
config.berkshelf.enabled = true
# Windows
config.windows.halt_timeout = 20
config.winrm.username = "vagrant"
config.winrm.password = "vagrant"
config.vm.guest = :windows
config.vm.network :forwarded_port, guest: 5985, host: 5985
# Provision
config.vm.provision :chef_solo do |chef|
chef.log_level = :debug
chef.file_cache_path = "c:/chef/cache"
chef.file_backup_path = "c:/chef/backup"
chef.add_recipe "windows::default"
chef.add_recipe "minitest-handler::default"
chef.add_recipe "windows::reboot_handler"
chef.add_recipe "webpi-installer::default"
chef.json = {
"webpi-installer"=>{
"packages"=> ['SQLCE', 'IIS7'],
"accepteula"=> true
},
"windows"=>{
"reboot_timeout" => 15
}
}
end
config.vm.provider :virtualbox do |v, override|
end
config.vm.provider :vmware_fusion do |v, override|
v.gui = true
v.vmx["memsize"] = "2048"
v.vmx["ethernet0.virtualDev"] = "vmxnet3"
v.vmx["RemoteDisplay.vnc.enabled"] = "false"
v.vmx["RemoteDisplay.vnc.port"] = "5900"
end
config.vm.provider :vmware_workstation do |v, override|
v.gui = true
v.vmx["memsize"] = "2048"
v.vmx["ethernet0.virtualDev"] = "vmxnet3"
v.vmx["RemoteDisplay.vnc.enabled"] = "false"
v.vmx["RemoteDisplay.vnc.port"] = "5900"
end
end