-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathVagrantfile
50 lines (43 loc) · 1.18 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
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/trusty64'
config.vm.provider :virtualbox do |p|
p.customize ['modifyvm', :id, '--memory', 1024]
end
#
# Vagrant Plugins:
#
config.cache.scope = :box if Vagrant.has_plugin?('vagrant-cachier')
#
# Chef Provisioning
#
config.vm.provision :chef_solo do |chef|
# chef.install = "force"
# chef.version = "12.5"
# 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',
'version' => '22.6.2',
'checksum' => '663eecdb173e3bd3beca85d87444b124d3acfae8af744ff175d291d985027d2b',
#'components' => [],
#'components' => ['android-20', 'android-19'],
'setup_root' => '/opt/somewhere',
# 'with_symlink' => false,
# 'java_from_system' => true,
'maven_rescue' => true,
'maven_local_repository' => '/home/vagrant/.m2/repository'
}
}
end
end