-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathVagrantfile
39 lines (34 loc) · 1.9 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
Vagrant.configure("2") do |config|
config.vm.define "vptdemos" do |vptdemos|
vptdemos.vm.box = "StefanScherer/windows_10"
vptdemos.windows.halt_timeout = 20
vptdemos.winrm.username = "vagrant"
vptdemos.winrm.password = "vagrant"
vptdemos.vm.guest = :windows
vptdemos.vm.communicator = "winrm"
vptdemos.vm.hostname = "vptdemos"
vptdemos.windows.set_work_network = true
vptdemos.vm.network :forwarded_port, guest: 5985, host: 14985, id: "winrm", auto_correct: true
vptdemos.vm.network :forwarded_port, guest: 3389, host: 14389, id: "rdp", auto_correct: true
vptdemos.vm.network :forwarded_port, guest: 22, host: 14222, id: "ssh", auto_correct: true
vptdemos.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", "4096"]
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
vptdemos.vm.provision :shell, :path => "shell/PrepareWindows.ps1", privileged: false
vptdemos.vm.provision :shell, :path => "shell/SetWindowsPreferences.ps1", privileged: false
vptdemos.vm.provision :shell, :path => "shell/InstallChocolatey.ps1", privileged: false
vptdemos.vm.provision :shell, :path => "shell/InstallRequiredApplications.ps1", privileged: false
vptdemos.vm.provision :shell, :path => "shell/CloneRepository.ps1", privileged: false
vptdemos.vm.provision :shell, :path => "shell/NotifyGuiAppsOfEnvironmentChanges.ps1", privileged: false
end
end