-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
28 lines (24 loc) · 960 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
# Vagrantfile for Gearsloth test environment
# vi: set sw=2 ts=2 sts=2 ft=ruby :
require_relative 'virt/vagrant/host.rb'
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
### Machine settings
#
config.vm.hostname = "sloth"
config.vm.box = "sloth-2014-06-06"
config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box"
### Provisioning
#
config.vm.provision :shell, path: "virt/vagrant/stdintty.sh"
config.vm.provision :shell, path: "virt/vagrant/apt.sh"
config.vm.provision :shell, path: "virt/vagrant/docker.sh"
config.vm.provision :shell, path: "virt/vagrant/make.sh", privileged: false
### Virtalbox configuration
#
config.vm.provider :virtualbox do |virtualbox|
virtualbox.name = "sloth-test-env"
virtualbox.memory = (Host.total_memory || 2048) / 2
virtualbox.cpus = Host.processor_count || 2
end
end