forked from SSSD/sssd-test-suite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
61 lines (56 loc) · 1.33 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
require_relative './ruby/config.rb'
require_relative './ruby/machine.rb'
require_relative './ruby/guest.rb'
# Default boxes
box_linux = "fedora/28-cloud-base"
box_ad = "peru/windows-server-2016-standard-x64-eval"
# Get configuration
project_dir = File.expand_path(File.dirname(__FILE__))
config_file = sprintf("%s/config.json", project_dir)
if ENV.has_key?("SSSD_TEST_SUITE_CONFIG")
config_file = ENV["SSSD_TEST_SUITE_CONFIG"]
end
config = Config.new(config_file, box_linux, box_ad)
machines = [
Machine.new(
name: "ipa",
type: Machine::LINUX,
hostname: "master.ipa.vm",
ip: "192.168.100.10",
config: config
),
Machine.new(
name: "ldap",
type: Machine::LINUX,
hostname: "master.ldap.vm",
ip: "192.168.100.20",
config: config
),
Machine.new(
name: "client",
type: Machine::LINUX,
hostname: "master.client.vm",
ip: "192.168.100.30",
config: config
),
Machine.new(
name: "ad",
type: Machine::WINDOWS,
hostname: "root-dc",
ip: "192.168.100.110",
config: config
),
Machine.new(
name: "ad-child",
type: Machine::WINDOWS,
hostname: "child-dc",
ip: "192.168.100.120",
config: config
)
]
# Create SSSD environment
Vagrant.configure("2") do |vagrant_config|
machines.each do |machine|
Guest.Add(config, vagrant_config, machine)
end
end