-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVagrantfile
39 lines (31 loc) · 1.24 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
#Linux Mode
#Vagrant.configure("2") do |config|
# config.vm.box = "hashicorp/precise64"
# config.vm.provision :shell, path: "linuxProvisioning.sh"
# config.vm.network :forwarded_port, guest: 8080, host: 4567
#end
#Windows Mode
Vagrant.configure("2") do |config|
config.vm.box = 'opentable/win-2012r2-standard-amd64-nocm'
config.vm.guest = :windows
config.vm.boot_timeout = 300
config.vm.communicator = "winrm"
config.winrm.username = 'vagrant'
config.winrm.password = 'vagrant'
config.vm.provider :virtualbox do |vb|
vb.name = "Win2012_Server"
vb.gui = true
vb.customize ["modifyvm", :id, "--memory", "1024"]
vb.customize ["modifyvm", :id, "--vram", "64"]
vb.customize ["modifyvm", :id, "--clipboard", "bidirectional"]
end
config.vm.network :forwarded_port, guest: 8080, host: 4567
config.vm.provision "shell", inline: <<-SCRIPT
Set-Item WSMan:\\localhost\\Shell\\MaxShellsPerUser -Value 100
Set-Item WSMan:\\localhost\\Service\\MaxConcurrentOperationsPerUser -Value 100
SCRIPT
config.vm.provision :shell, path: "windowsProvisioning_Part1.cmd"
config.vm.provision :shell, path: "windowsProvisioning_Part2.cmd"
end