-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
113 lines (101 loc) · 4.93 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
109
110
111
112
113
Vagrant.configure("2") do |config|
# Ubuntu 20.04 Focal Fossa
# config.vm.box = "ubuntu/focal64"
# Ubuntu 22.04 Jammy Jellyfish
# config.vm.box = "ubuntu/jammy64"
# Ubuntu 24.04 Noble Numba
# config.vm.box = "ubuntu/noble64"
config.vm.box = "alvistack/ubuntu-24.04"
config.vm.hostname = "corpsee.test"
config.vm.network :private_network, ip: "192.168.56.10"
config.ssh.forward_agent = true
config.vm.provider :virtualbox do |virtualbox|
virtualbox.name = "webserver"
virtualbox.customize [
"modifyvm", :id,
"--name", "webserver",
"--memory", "1024",
"--natdnshostresolver1", "on",
"--cpus", 1,
]
end
# config.vm.provider :libvirt do |libvirt|
# libvirt.uri = "qemu+unix:///system"
# libvirt.host = "corpsee.test"
# libvirt.cpus = 1
# libvirt.memory = 1024
# end
config.vm.provision "main", type: "ansible" do |main|
main.playbook = "playbooks/web_server/main.yml"
main.inventory_path = "inventories/vagrant.yml"
main.compatibility_mode = "2.0"
main.limit = 'all'
main.verbose = "vvv"
end
config.vm.provision "corpsee_site_init", type: "ansible", run: "never" do |corpsee_site_init|
corpsee_site_init.playbook = "playbooks/web_server/corpsee_site_init.yml"
corpsee_site_init.inventory_path = "inventories/vagrant.yml"
corpsee_site_init.compatibility_mode = "2.0"
corpsee_site_init.limit = 'all'
corpsee_site_init.verbose = "vvv"
end
config.vm.provision "php_censor_init", type: "ansible", run: "never" do |php_censor_init|
php_censor_init.playbook = "playbooks/web_server/php_censor_init.yml"
php_censor_init.inventory_path = "inventories/vagrant.yml"
php_censor_init.compatibility_mode = "2.0"
php_censor_init.limit = 'all'
php_censor_init.verbose = "vvv"
end
config.vm.provision "php_censor_test_init", type: "ansible", run: "never" do |php_censor_test_init|
php_censor_test_init.playbook = "playbooks/web_server/php_censor_test_init.yml"
php_censor_test_init.inventory_path = "inventories/vagrant.yml"
php_censor_test_init.compatibility_mode = "2.0"
php_censor_test_init.limit = 'all'
php_censor_test_init.verbose = "vvv"
end
config.vm.provision "php_censor_site_init", type: "ansible", run: "never" do |php_censor_site_init|
php_censor_site_init.playbook = "playbooks/web_server/php_censor_site_init.yml"
php_censor_site_init.inventory_path = "inventories/vagrant.yml"
php_censor_site_init.compatibility_mode = "2.0"
php_censor_site_init.limit = 'all'
php_censor_site_init.verbose = "vvv"
end
config.vm.provision "corpsee_site_release", type: "ansible", run: "never" do |corpsee_site_release|
corpsee_site_release.playbook = "playbooks/web_server/corpsee_site_release.yml"
corpsee_site_release.inventory_path = "inventories/vagrant.yml"
if ENV['RELEASE_VERSION']
corpsee_site_release.extra_vars = {
corpsee_site_version: ENV['RELEASE_VERSION']
}
end
corpsee_site_release.compatibility_mode = "2.0"
corpsee_site_release.limit = 'all'
corpsee_site_release.verbose = "vvv"
end
config.vm.provision "php_censor_release", type: "ansible", run: "never" do |php_censor_release|
php_censor_release.playbook = "playbooks/web_server/php_censor_release.yml"
php_censor_release.inventory_path = "inventories/vagrant.yml"
if ENV['RELEASE_VERSION']
php_censor_release.extra_vars = {
php_censor_version: ENV['RELEASE_VERSION']
}
end
php_censor_release.compatibility_mode = "2.0"
php_censor_release.limit = 'all'
php_censor_release.verbose = "vvv"
end
config.vm.provision "php_censor_test_release", type: "ansible", run: "never" do |php_censor_test_release|
php_censor_test_release.playbook = "playbooks/web_server/php_censor_test_release.yml"
php_censor_test_release.inventory_path = "inventories/vagrant.yml"
if ENV['RELEASE_VERSION']
php_censor_test_release.extra_vars = {
php_censor_version: ENV['RELEASE_VERSION']
}
end
php_censor_test_release.compatibility_mode = "2.0"
php_censor_test_release.limit = 'all'
php_censor_test_release.verbose = "vvv"
end
#config.vm.synced_folder "./", "/vagrant", type: "nfs", mount_options: ["vers=3,tcp"]
config.vm.synced_folder "./", "/vagrant"
end