forked from gildegoma/chef-android-sdk
/
Vagrantfile
50 lines (40 loc) · 1022 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Vagrant.configure("2") do |config|
#
# Vagrant Base Box and virutal hardware tuning
#
#config.vm.box = "ubuntu/precise64"
config.vm.box = "ubuntu/trusty64"
config.vm.provider :virtualbox do |p|
p.customize ["modifyvm", :id, "--memory", 768]
end
#
# Vagrant Plugins:
#
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.scope = :box
end
config.omnibus.chef_version = :latest
config.berkshelf.enabled = true
#
# Chef Provisioning
#
config.vm.provision :chef_solo do |chef|
#chef.log_level = 'debug'
chef.add_recipe 'apt'
chef.add_recipe 'git'
chef.add_recipe 'maven'
chef.add_recipe 'android-sdk'
chef.json = {
"java" => {
"jdk_version" => '7'
},
"android-sdk" => {
"owner" => 'vagrant',
"group" => 'vagrant',
# "components" => ['android-20', 'android-19']
"maven-rescue" => true,
"maven-local-repository" => '/home/vagrant/.m2/repository'
},
}
end
end