-
Notifications
You must be signed in to change notification settings - Fork 10
/
Vagrantfile
88 lines (74 loc) · 2.52 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.require_version ">= 1.8.5"
Vagrant.configure("2") do |config|
config.vm.define "Pioneer Dev"
# Name of box to install with
config.vm.box = "windows_10_hyperv"
# config.vm.box = "windows_10_virtualbox"
# config.vm.box = "windows_10_vmware"
# Communicator type
config.vm.communicator = "winrm"
# Guest OS
config.vm.guest = :windows
config.windows.halt_timeout = 15
# Config networks on guest.
config.vm.network :forwarded_port, guest: 3389, host: 3389, id: "rdp", auto_correct: true
config.vm.network :forwarded_port, guest: 22, host: 2222, id: "ssh", auto_correct: true
# Admin user name and password
config.winrm.username = "vagrant"
config.winrm.password = "vagrant"
# Hyperv configuration
config.vm.provider :hyperv do |h|
h.vmname = "pioneer-dev"
h.cpus = 2
h.memory = 12288
end
# VirutalBox configuration
config.vm.provider :virtualbox do |vb, override|
vb.gui = true
vb.cpus = 2
vb.memory = 12288
vb.customize ["modifyvm", :id, "--vram", "128"]
vb.customize ["setextradata", "global", "GUI/SuppressMessages", "all" ]
vb.customize ["modifyvm", :id, "--clipboard", "bidirectional"]
vb.customize ["modifyvm", :id, "--draganddrop", "bidirectional"]
end
# VMWare Workstation configuration
config.vm.provider :vmware_workstation do |v, override|
v.gui = true
v.vmx["memsize"] = 12288
v.vmx["numvcpus"] = 2
v.vmx['displayname'] = "Pioneer Dev"
v.vmx["ethernet0.virtualDev"] = "vmxnet3"
v.vmx["RemoteDisplay.vnc.enabled"] = "false"
v.vmx["RemoteDisplay.vnc.port"] = "5900"
v.vmx["scsi0.virtualDev"] = "lsisas1068"
end
# VMWare Fusion configuration
config.vm.provider :vmware_fusion do |v, override|
#v.gui = true
v.vmx["memsize"] = "12288"
v.vmx["numvcpus"] = "2"
v.vmx["ethernet0.virtualDev"] = "vmxnet3"
v.vmx["RemoteDisplay.vnc.enabled"] = "false"
v.vmx["RemoteDisplay.vnc.port"] = "5900"
v.vmx["scsi0.virtualDev"] = "lsisas1068"s
end
# Execute Provision
# Move scripts to documents folder and install when ready
config.vm.provision "file", source: "scripts", destination: "scripts"
# Install on Up
config.vm.provision "shell" do |s|
s.path = "scripts/install-iis.ps1"
end
config.vm.provision "shell" do |s|
s.path = "scripts/install-choco.ps1"
end
config.vm.provision "shell" do |s|
s.path = "scripts/install-npm.ps1"
end
config.vm.provision "shell" do |s|
s.path = "scripts/install-vscode-extensions.ps1"
end
end