forked from fkie-cad/pcapFS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
63 lines (56 loc) · 1.59 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.provider "virtualbox" do |vb|
vb.memory = "2048"
vb.gui = false
end
#config.vm.synced_folder "../../", "/pcap/"
#config.vm.provision "shell", "path": "scripts/vagrant/provision.sh"
$provision_script = <<-PROVISION_SCRIPT
mkdir pcapfs
(cd /vagrant && tar -cf - \
--exclude=./3rdparty \
--exclude=./build \
--exclude=./cmake-build-debug \
--exclude=./dependencies \
--exclude=.git \
--exclude=.vagrant .) | tar -C pcapfs -xf -
PROVISION_SCRIPT
config.vm.provision "shell", inline: $provision_script
# CentOS boxes
config.vm.define "centos-6" do |centos6|
centos6.vm.box = "bento/centos-6"
end
config.vm.define "centos-7" do |centos7|
centos7.vm.box = "bento/centos-7"
end
# Kali boxes
config.vm.define "kali" do |kali|
kali.vm.box = "offensive-security/kali-linux"
end
config.vm.define "kali-light" do |kali_light|
kali_light.vm.box = "offensive-security/kali-linux-light"
end
# Ubuntu boxes
config.vm.define "ubuntu-14.04" do |trusty|
trusty.vm.box = "ubuntu/trusty64"
end
config.vm.define "ubuntu-16.04" do |xenial|
xenial.vm.box = "ubuntu/xenial64"
end
config.vm.define "ubuntu-18.04" do |bionic|
bionic.vm.box = "ubuntu/bionic64"
end
if Vagrant.has_plugin?("vagrant-proxyconf")
if ENV["http_proxy"]
config.proxy.http = ENV["http_proxy"]
end
if ENV["https_proxy"]
config.proxy.https = ENV["https_proxy"]
end
if ENV["no_proxy"]
config.proxy.no_proxy = ENV["no_proxy"]
end
end
end