-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathVagrantfile
More file actions
37 lines (30 loc) · 805 Bytes
/
Vagrantfile
File metadata and controls
37 lines (30 loc) · 805 Bytes
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
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box_check_update = true
config.ssh.forward_agent = true
if Vagrant.has_plugin? 'vagrant-cachier'
config.cache.scope = :box
config.cache.enable :apt
config.cache.enable :apt_lists
end
config.vm.provider :virtualbox do |vb|
vb.gui = false
vb.memory = 1500 # 1.5 GiB
end
config.vm.provision :ansible do |a|
a.verbose = 'v'
a.playbook = 'ansible/site.yml'
a.extra_vars = {
ansible_ssh_user: :vagrant,
compiler_family: ENV['CC'] || 'gcc',
hosts: 'localhost'
}
end
config.vm.define :target do |t|
t.vm.box = 'chef/ubuntu-13.04'
end
config.vm.define :travis do |t|
t.vm.box = 'chef/ubuntu-12.04'
end
end