This repository has been archived by the owner on Jan 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathVagrantfile
46 lines (37 loc) · 1.7 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
## -*- mode: ruby -*-
## vi: set ft=ruby :
# Box Configuration, change according to your needs
boxconfig = {
:gui => false,
:ram => "1536",
:cpu => "2"
}
# Do not change anything from this point unless you know what you're doing
Vagrant.configure(2) do |config|
config.vm.box = "opentable/win-2012r2-standard-amd64-nocm"
config.vm.synced_folder "./provision", "/provision" # shared goodies!
config.vm.synced_folder '.', '/vagrant', disabled: true # we don't need to share root anymore
config.vm.hostname = "SQLEXPRESS"
config.vm.provider :vmware_workstation do |v|
v.gui = boxconfig[:gui]
v.vmx["memsize"] = boxconfig[:ram]
v.vmx["numvcpus"] = boxconfig[:cpu]
end
config.vm.provider :virtualbox do |v|
v.gui = boxconfig[:gui]
v.customize ["modifyvm", :id, "--memory", boxconfig[:ram]]
v.customize ["modifyvm", :id, "--cpus", boxconfig[:cpu]]
v.customize ["modifyvm", :id, "--ioapic", "on"]
v.vm.provision :shell, path: "./provision/create-shortcuts.ps1"
end
config.vm.network :private_network, ip: "192.168.50.10"
config.vm.provision :shell, path: "./provision/install-net-framework.ps1"
config.vm.provision :shell, path: "./provision/enable-network-discovery.ps1"
config.vm.provision :shell, path: "./provision/disable-firewall.ps1"
config.vm.provision :shell, path: "./provision/disable-windows-updates.ps1"
config.vm.provision :shell, path: "./provision/install-chocolatey.ps1"
config.vm.provision :shell, path: "./provision/install-sql-engine.ps1"
config.vm.provision :shell, path: "./provision/install-sqlps.ps1"
config.vm.provision :shell, path: "./provision/config-sql-ports.ps1"
config.vm.provision :shell, path: "./provision/enable-rdp.ps1"
end