forked from jedav/picoCTF-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
executable file
·47 lines (33 loc) · 1.38 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.define "shell", primary: true do |shell|
shell.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/vivid/current/vivid-server-cloudimg-amd64-vagrant-disk1.box"
shell.vm.box = "ubuntu/vivid64"
# Bug fixed in 1.7.4
# shell.vm.hostname = "shell"
shell.vm.provision :shell, inline: "hostnamectl set-hostname shell"
shell.ssh.forward_agent = true
shell.vm.network "private_network", ip: "192.168.2.3"
shell.vm.provision :shell, :path => "scripts/shell_setup.sh"
shell.vm.synced_folder ".", "/vagrant",
owner: "vagrant",
group: "root",
mount_options: ["dmode=1710"]
shell.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--memory", "3072"]
end
end
config.vm.define "web", primary: true do |web|
web.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/vivid/current/vivid-server-cloudimg-amd64-vagrant-disk1.box"
web.vm.box = "ubuntu/vivid64"
# web.vm.hostname = "web"
web.vm.provision :shell, inline: "hostnamectl set-hostname web"
web.vm.network "private_network", ip: "192.168.2.2"
web.vm.provision :shell, :path => "scripts/web_setup.sh"
web.ssh.forward_agent = true
web.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--memory", "2048"]
end
end
end