forked from fgrehm/vagrant-mssql-express
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
35 lines (28 loc) · 1.37 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
ENV['VAGRANT_DEFAULT_PROVIDER'] = 'virtualbox'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "opentable/win-2012r2-standard-amd64-nocm"
config.vm.guest = :windows
config.vm.communicator = "winrm"
config.vm.boot_timeout = 500
config.vm.network "private_network", ip: "192.168.50.4"
config.vm.network :forwarded_port, guest: 3389, host: 3389, id: "rdp", auto_correct: true
config.winrm.username = "vagrant"
config.winrm.password = "vagrant"
config.vm.provider "virtualbox" do |v|
v.customize ["modifyvm", :id, "--name", "win-2012-mssql-2014"]
v.customize ["modifyvm", :id, "--memory", "2048"]
v.customize ["modifyvm", :id, "--cpus", "2"]
v.customize ["modifyvm", :id, "--clipboard", "bidirectional"]
v.customize ["modifyvm", :id, "--draganddrop", "bidirectional"]
end
config.vm.provision :shell, path: "scripts/install-dot-net.ps1"
config.vm.provision :shell, path: "Scripts/download-sql-server.ps1"
config.vm.provision :shell, path: "scripts/install-sql-server.ps1"
config.vm.provision :shell, path: "scripts/configure-sql-port.ps1"
config.vm.provision :shell, path: "Scripts/create-database.ps1"
config.vm.provision :shell, path: "scripts/enable-rdp.ps1"
end