-
Notifications
You must be signed in to change notification settings - Fork 5
/
Vagrantfile
51 lines (47 loc) · 1.95 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
#
# Vagrantfile docs: https://docs.vagrantup.com
# For more boxes see https://vagrantcloud.com/search
ansible_roles = []
ansible_roles.each do |role|
system("ansible-galaxy install #{role}")
end
Vagrant.configure("2") do |config|
config.vm.define "identity" do |identity|
identity.vm.box = "centos/7"
identity.vm.hostname = "identity.painless.software"
identity.vm.network :forwarded_port, host: 8444, guest: 443, auto_correct: true
identity.vm.post_up_message = "Identity management is ready. FreeIPA: https://127.0.0.1:8444/"
identity.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--name", "Groundcontrol IdentityManagement"]
vb.customize ["modifyvm", :id, "--memory", "1024"]
vb.customize ["modifyvm", :id, "--vram", "16"]
vb.customize ["modifyvm", :id, "--ioapic", "on"]
vb.customize ["modifyvm", :id, "--cpus", "4"]
end
identity.vm.provision "ansible" do |ansible|
ansible.compatibility_mode = "2.0"
ansible.playbook = "ansible/playbook-identity.yml"
end
identity.vm.synced_folder ".", "/vagrant", disabled: true
end
config.vm.define "enc" do |enc|
enc.vm.box = "centos/7"
enc.vm.hostname = "enc.painless.software"
enc.vm.network :forwarded_port, host: 8443, guest: 443, auto_correct: true
enc.vm.post_up_message = "ENC frontend is ready. The Foreman: https://127.0.0.1:8443/"
enc.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--name", "Groundcontrol ENCfrontend"]
vb.customize ["modifyvm", :id, "--memory", "1024"]
vb.customize ["modifyvm", :id, "--vram", "16"]
vb.customize ["modifyvm", :id, "--ioapic", "on"]
vb.customize ["modifyvm", :id, "--cpus", "4"]
end
enc.vm.provision "ansible" do |ansible|
ansible.compatibility_mode = "2.0"
ansible.playbook = "ansible/playbook-enc.yml"
end
enc.vm.synced_folder ".", "/vagrant", disabled: true
end
end