-
Notifications
You must be signed in to change notification settings - Fork 3
/
Vagrantfile
executable file
·88 lines (75 loc) · 2.31 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
ansible_groups = {
"db" => [
"ansible"
],
"web" => [
"ansible"
],
"app" => [
"ansible"
],
"broker" => [
"ansible"
],
"queue" => [
"ansible"
],
"worker" => [
"ansible"
],
"search" => [
"ansible"
],
"cache" => [
"ansible"
],
}
# Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# config.ssh.username = 'root'
# config.ssh.password = 'root'
# config.vm.provider :docker do |d|
# d.build_dir = "."
# d.has_ssh = true
# d.remains_running = true
# # Needed for using ufw/iptables
# d.create_args = ["--cap-add=NET_ADMIN"]
# end
# config.vm.hostname = "ansible"
# config.vm.define "ansible"
# config.vm.network "forwarded_port", guest: 8080, host: 8085, host_ip: "127.0.0.1", auto_correct: true
# config.ssh.connect_timeout = 30
# # Ansible provisioner.
# config.vm.provision "ansible" do |ansible|
# ansible.playbook = "playbooks/vagrant.yml"
# ansible.groups = ansible_groups
# ansible.host_key_checking = false
# ansible.verbose = "vvv"
# ansible.raw_arguments = ["-e", "ansible_python_interpreter=/usr/bin/python3"]
# end
# end
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/jammy64"
# config.vm.network :private_network, :type => 'dhcp', :name => 'vboxnet0', :adapter => 2
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--name", "FragDenStaat.de", "--memory", "6144"]
end
# Shared folder from the host machine to the guest machine. Uncomment the line
# below to enable it.
# config.vm.synced_folder "../fragdenstaat_de", "/var/www/fragdenstaat.de/fragdenstaat.de"
# config.vm.synced_folder "../froide", "/var/www/fragdenstaat.de/src/froide"
# config.vm.synced_folder "../froide-fax", "/var/www/fragdenstaat.de/src/froide-fax"
# etc.
config.ssh.connect_timeout = 30
config.ssh.insert_key = false
# Ansible provisioner.
config.vm.provision "ansible" do |ansible|
ansible.playbook = "playbooks/vagrant.yml"
ansible.host_key_checking = false
ansible.verbose = "vvv"
ansible.raw_arguments = ["-e", "ansible_python_interpreter=/usr/bin/python3"]
end
end