-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
36 lines (32 loc) · 1.1 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
Vagrant.configure("2") do |config|
config.vm.provider "hyperv" do |h|
h.enable_virtualization_extensions = true
h.differencing_disk = true
end
config.vm.box_check_update = false
vagrant_password = 'vagrant'
config.vm.define "dc" do |dc|
dc.vm.communicator = "winrm"
dc.vm.box = "windows-2016-datacenter"
dc.vm.provider "hyperv" do |hyperv|
hyperv.vmname = "dc"
hyperv.ip_address_timeout = 240
hyperv.cpus = 2
hyperv.memory = 4096
end
config.vm.synced_folder ".", "/vagrant", type: "smb", smb_username: "vagrant", smb_password: vagrant_password
end
(1..3).each do |index|
config.vm.define "fileserver-#{index}" do |fileserver|
fileserver.vm.communicator = "winrm"
fileserver.vm.box = "windows-2016-datacenter"
fileserver.vm.provider "hyperv" do |hyperv|
hyperv.vmname = "fileserver-#{index}"
hyperv.ip_address_timeout = 240
hyperv.cpus = 2
hyperv.memory = 4096
end
config.vm.synced_folder ".", "/vagrant", type: "smb", smb_username: "vagrant", smb_password: vagrant_password
end
end
end