-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
40 lines (32 loc) · 1.24 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.box_check_update = false
config.vm.provision "fix-no-tty", type: "shell" do |s|
s.privileged = false
s.inline = "sudo sed -i '/tty/!s/mesg n/tty -s \\&\\& mesg n/' /root/.profile"
end
config.vm.provision :shell, path: "shell/provision.sh"
config.vm.provision :shell, run: "always", path: "shell/start.sh"
# Begin skeleton
config.vm.define "skeleton" do |skeleton|
skeleton.vm.hostname = "skeleton"
skeleton.vm.provider "vmware_fusion" do |v|
v.vmx["numvcpus"] = "1"
v.vmx["memsize"] = "4048"
v.name = "skeleton.local"
end
skeleton.vm.provider "virtualbox" do |v|
v.customize [ "modifyvm", :id, "--cpus", "1" ]
v.customize [ "modifyvm", :id, "--memory", "4048" ]
v.name = "securitytest.local"
end
skeleton.vm.network "private_network", ip: "192.168.205.86"
skeleton.vm.synced_folder ".", "/vagrant", owner: "root", group: "root"
skeleton.vm.synced_folder ".", "/srv/www/skeleton.local", owner: "www-data", group: "www-data"
end
# End skeleton
end