forked from TIBHannover/edu-sharing-box
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
43 lines (39 loc) · 1.4 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
require 'yaml'
settings = YAML.load_file 'ansible/group_vars/all.yml'
Vagrant.configure("2") do |config|
config.vm.define "edu-sharing-vm" do |srv|
srv.vm.box = "debian/bookworm64"
srv.ssh.insert_key = false
srv.vm.hostname = "edu-sharing.box"
srv.vm.network :private_network, ip: settings['edu_sharing_host']
srv.vm.provider :virtualbox do |vb|
vb.name = "edu-sharing"
vb.memory = 7168
vb.cpus = 2
end
end
config.vm.provision "ansible_local" do |ansible|
ansible.install = true
ansible.install_mode = "pip"
ansible.pip_install_cmd = "sudo apt-get install -y python3-distutils && curl -s https://bootstrap.pypa.io/get-pip.py | sudo python3"
ansible.version = "2.9.27"
ansible.compatibility_mode = "2.0"
#ansible.verbose = "vvv"
ansible.playbook = "ansible/system.yml"
ansible.galaxy_role_file = "requirements.yml"
ansible.groups = {
"alfrescosolr4" => ["edu-sharing-vm"],
"edusharing" => ["edu-sharing-vm"],
"educonnector" => ["edu-sharing-vm"],
"onlyoffice" => ["edu-sharing-vm"],
"antivirus" => ["edu-sharing-vm"],
"opencast" => ["edu-sharing-vm"],
"renderingservice" => ["edu-sharing-vm"],
"tomcat:children" => ["alfrescosolr4", "edusharing"],
"alfresco:children" => ["alfrescosolr4", "edusharing"],
"all:vars" => {
"timezone" => "Europe/Berlin"
}
}
end
end