-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
108 lines (97 loc) · 3.44 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# -*- 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.box = "bento/ubuntu-16.04"
config.vm.provider :virtualbox do |virtualbox|
virtualbox.cpus = 4
virtualbox.memory = 2048
end
config.vm.define "siilo" do |siilo|
siilo.vm.network "private_network", ip: "192.168.50.4"
siilo.vm.provision :ansible do |ansible|
ansible.playbook = "tracon.yml"
ansible.vault_password_file = ".vault_pass.txt"
ansible.extra_vars = {
"letsencrypt_enabled" => "0",
"base_resolv_conf_enabled" => "0",
"postgresql_barman_hostname" => "192.168.50.5",
"postgresql_barman_ip" => "192.168.50.5",
# FIXME nowadays a list, postgresql_access_networks. we prolly can't set complex vars herein?
"postgresql_access_network" => "192.168.50.0/24",
"postgresql_listen" => "192.168.50.4",
"pgadmin4_ssl" => false,
}
ansible.groups = {
"docker-servers" => ["siilo"],
"postgresql_servers" => ["siilo"],
}
ansible.host_key_checking = false
end
end
config.vm.define "piilo" do |piilo|
piilo.vm.network "private_network", ip: "192.168.50.5"
piilo.vm.provision :ansible do |ansible|
ansible.playbook = "tracon.yml"
ansible.vault_password_file = ".vault_pass.txt"
ansible.extra_vars = {
"letsencrypt_enabled" => "0",
"base_resolv_conf_enabled" => "0",
"postgresql_hostname" => "192.168.50.4",
}
ansible.groups = {
"barman_servers" => ["piilo"]
}
ansible.host_key_checking = false
end
end
# config.vm.define "nuoli" do |nuoli|
# nuoli.vm.provision :ansible do |ansible|
# ansible.playbook = "tracon.yml"
# ansible.vault_password_file = ".vault_pass.txt"
# ansible.extra_vars = {
# "slackirc_enabled" => "0",
# "infokala_allowed_hosts" => "infokala.tracon.fi infokala.localdomain",
# "infokala_email_host" => "",
# "letsencrypt_enabled" => "0",
# }
# ansible.groups = {
# "tracon_servers" => ["nuoli"]
# }
# ansible.host_key_checking = false
# end
# end
# config.vm.define "neula" do |neula|
# neula.vm.provision :ansible do |ansible|
# ansible.playbook = "tracon.yml"
# ansible.vault_password_file = ".vault_pass.txt"
# ansible.extra_vars = {
# "kompassi_allowed_hosts" => "kompassi.eu local.kompassi.eu",
# "kompassi_email_host" => "",
# "kompassi_crowd_application_password" => "",
# "kompassi_desuprofile_oauth2_client_id" => "",
# "letsencrypt_enabled" => "0",
# }
# ansible.groups = {
# "kompassi_servers" => ["neula"]
# }
# ansible.host_key_checking = false
# end
# end
# config.vm.define "monokkeli" do |monokkeli|
# monokkeli.vm.provision :ansible do |ansible|
# ansible.playbook = "tracon.yml"
# ansible.vault_password_file = ".vault_pass.txt"
# ansible.extra_vars = {
# "jenkins_hostname" => "jenkins.local",
# "jenkins_allowed_hosts" => "jenkins.local",
# "letsencrypt_enabled" => "0",
# }
# ansible.groups = {
# "management_servers" => ["monokkeli"]
# }
# ansible.host_key_checking = false
# end
# end
end