-
Notifications
You must be signed in to change notification settings - Fork 2
/
Vagrantfile
38 lines (25 loc) · 1.05 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define "dc" do |dc|
dc.vm.box = "ubuntu/trusty64"
dc.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'"
dc.vm.provision "shell", path: "configure-dc.sh"
dc.vm.network "private_network", ip: "192.168.50.4", virtualbox__intnet: "active_directory_network"
end
config.vm.define "client" do |client|
client.vm.box = "ferhaty/win7ie10winrm"
client.vm.guest = :windows
client.vm.communicator = "winrm"
client.winrm.username = "IEUser"
client.winrm.password = "Passw0rd!"
client.vm.provider "virtualbox" do |v|
v.gui = true
end
client.vm.network "private_network", ip: "192.168.50.5", virtualbox__intnet: "active_directory_network"
client.vm.provision "shell", path: "configure-dns.bat"
client.vm.provision "shell", path: "join-domain.ps1"
end
end