-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
46 lines (40 loc) · 2.2 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
Vagrant.configure("2") do |config|
config.vm.define "livestreams" do |livestreams|
livestreams.vm.box = "StefanScherer/windows_2019"
livestreams.windows.halt_timeout = 20
livestreams.winrm.username = "vagrant"
livestreams.winrm.password = "vagrant"
livestreams.vm.guest = :windows
livestreams.vm.communicator = "winrm"
livestreams.vm.hostname = "livestreams"
livestreams.windows.set_work_network = true
livestreams.vm.network :forwarded_port, guest: 5985, host: 14985, id: "winrm", auto_correct: true
livestreams.vm.network :forwarded_port, guest: 3389, host: 14389, id: "rdp", auto_correct: true
livestreams.vm.network :forwarded_port, guest: 22, host: 14222, id: "ssh", auto_correct: true
livestreams.vm.provider :vmware_desktop do |v, override|
v.gui = true
v.vmx["memsize"] = "8192"
v.vmx["numvcpus"] = "2"
end
livestreams.vm.provider :virtualbox do |v, override|
override.vm.network :private_network, ip: "10.10.117.13"
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.gui = true
v.customize ["modifyvm", :id, "--vram", 32]
v.customize ["modifyvm", :id, "--memory", "8192"]
v.customize ["modifyvm", :id, "--audio", "none"]
v.customize ["modifyvm", :id, "--clipboard", "bidirectional"]
v.customize ["modifyvm", :id, "--draganddrop", "hosttoguest"]
v.customize ["modifyvm", :id, "--usb", "off"]
# linked clones for speed and size
v.linked_clone = true if Vagrant::VERSION >= '1.8.0'
end
livestreams.vm.provision :shell, :path => "shell/PrepareWindows.ps1", privileged: false
livestreams.vm.provision :shell, :path => "shell/SetWindowsPreferences.ps1", privileged: false
livestreams.vm.provision :shell, :path => "shell/InstallChocolatey.ps1", privileged: false
livestreams.vm.provision :shell, :path => "shell/InstallRequiredApplications.ps1", privileged: false
livestreams.vm.provision :shell, :path => "shell/ConfigureGit.ps1", privileged: false
livestreams.vm.provision :shell, :path => "shell/CloneRepositories.ps1", privileged: false
livestreams.vm.provision :shell, :path => "shell/NotifyGuiAppsOfEnvironmentChanges.ps1", privileged: false
end
end