forked from csirtgadgets/bearded-avenger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
30 lines (24 loc) · 906 Bytes
/
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
#e -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
VAGRANTFILE_LOCAL = 'Vagrantfile.local'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = 'ubuntu/trusty64'
config.vm.network :forwarded_port, guest: 5000, host: 5000
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--cpus", "2", "--ioapic", "on", "--memory", "512" ]
end
config.vm.provision "shell", inline: <<-END
echo GH_TOKEN=#{ENV['GH_TOKEN']} >> /home/vagrant/.profile
END
#config.vm.provision "ansible" do |ansible|
# ansible.playbook = "deployment/ubuntu14/ansible/vagrant.yml"
# ansible.extra_vars = { development: 'true' }
# #ansible.verbose = 'vvv'
#end
if File.file?(VAGRANTFILE_LOCAL)
external = File.read VAGRANTFILE_LOCAL
eval external
end
end