-
Notifications
You must be signed in to change notification settings - Fork 3
/
Vagrantfile
72 lines (55 loc) · 2.64 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
62
63
64
65
66
67
68
69
70
71
72
Vagrant.configure(2) do |config|
# load our specific settings
require 'yaml'
globalconfig = YAML.load_file 'globalconfig.yml'
current_dir = File.dirname(File.expand_path(__FILE__))
mybase = globalconfig['myglobals']['IDPInstallerBase']
fqinstallerpath = "#{current_dir}#{mybase}"
puts "[buildtools] vagrant portion starting"
puts "[buildtools] Vagrant current_dir: #{current_dir}"
puts "[buildtools] Fully Qualified Installer Path: #{fqinstallerpath}"
config.hostmanager.enabled = true
config.hostmanager.manage_host = true
config.hostmanager.manage_guest = true
config.hostmanager.ignore_private_ip = false
config.hostmanager.include_offline = false
# config.vm.box = "centos/7"
config.vm.box = "kaorimatz/debian-8.3-amd64"
config.vm.provision "base", type: "shell", path: "common/base.sh"
config.vm.define "ldap" do |config|
config.vm.hostname = "ldap.example.com"
config.vm.network "private_network", ip: "172.16.80.2"
config.vm.synced_folder "#{current_dir}" , "/vagrant"
config.vm.provision "install", type: "shell", path: "ldap/install.sh"
# config.vm.provision "debug", type: "shell", path: "ldap/debug.sh"
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "512"]
end
end
config.vm.define "sp" do |config|
config.vm.hostname = "sp.example.com"
config.vm.network "private_network", ip: "172.16.80.3"
config.vm.synced_folder "#{current_dir}" , "/vagrant"
# config.vm.provision "dev", type: "shell", path: "sp/dev.sh"
config.vm.provision "install", type: "shell", path: "sp/install.sh"
config.vm.provision "config", type: "shell", path: "sp/config.sh"
config.vm.provision "eds", type: "shell", path: "sp/eds.sh"
config.vm.provision "sso", type: "shell", path: "sp/sso.sh", args: "#{ENV['SSO']}"
config.vm.provision "metadata-idp", type: "shell", path: "sp/metadata.sh", args: "+ idp https://idp.example.com/idp/shibboleth"
# specifics for this box are:
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "512"]
end
end
config.vm.define "idp" do |config|
config.vm.hostname = "idp.example.com"
config.vm.network "private_network", ip: "172.16.80.4"
config.vm.synced_folder "#{fqinstallerpath}" , "/installer"
config.vm.provision "install", type: "shell", path: "idp/provision.sh"
config.vm.provision "metadata", type: "shell", path: "idp/metadata.sh"
# specifics for this box are:
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "2200"]
end
end
end