forked from scVENUS/PeekabooAV-Installer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
53 lines (45 loc) · 1.91 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# libvirt provider defaults to NFS which throws up new dependencies and
# problems. So we force rsync here.
config.vm.synced_folder '.', '/vagrant', type: 'rsync'
config.vm.define "peekaboo" do |peekaboo|
peekaboo.vm.box = "generic/ubuntu1804"
#peekaboo.vm.box = "generic/ubuntu2004"
peekaboo.vm.hostname = "peekabooav.int"
config.ssh.username = 'vagrant'
config.ssh.password = 'vagrant'
config.ssh.insert_key = 'true'
peekaboo.vm.network "private_network", ip: "192.168.56.5"
#peekaboo.vm.network "public_network", type: "dhcp"
# port forward to cuckoo web
peekaboo.vm.network "forwarded_port", guest: 8000, host: 8000, host_ip: "127.0.0.1"
# port forward to cuckoo api
peekaboo.vm.network "forwarded_port", guest: 8090, host: 8090, host_ip: "127.0.0.1"
# port forward to amavis
peekaboo.vm.network "forwarded_port", guest: 10024, host: 10024, host_ip: "127.0.0.1"
peekaboo.vm.provider "virtualbox" do |vb|
# ... or libvirt - needs vb.name commented below
#peekaboo.vm.provider "libvirt" do |vb|
vb.name = "PeekabooAV"
vb.memory = 3072
vb.cpus = 2
# if you need more disk space use
# vagrant plugin install vagrant-disksize
if Vagrant.has_plugin?("vagrant-disksize")
config.disksize.size = '50GB'
end
end
end
# if apt-get is having problems finding the mirror servers, we can try
# disabling DNSSEC
#config.vm.provision "shell" do |install|
# install.inline = "sed -i '/^DNSSEC=/s,.*,DNSSEC=no,' /etc/systemd/resolved.conf && systemctl restart systemd-resolved"
#end
config.vm.provision "shell" do |install|
# change directory first (args + env not suitable)
install.inline = "cd /vagrant && ./PeekabooAV-install.sh --quiet"
end
config.vm.provision 'shell', inline: 'passwd --delete vagrant'
end