forked from gramos/cf-vagrant-installer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
79 lines (70 loc) · 2.19 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.define "cf-install"
config.vm.box = "precise64"
config.vm.network :forwarded_port, guest: 8181, host: 8181
config.vm.network :forwarded_port, guest: 8080, host: 8080
config.vm.network :forwarded_port, guest: 80, host: 8000
config.vm.network :forwarded_port, guest: 4222, host: 4222
config.vm.provider :virtualbox do |v, override|
override.vm.box_url = "http://files.vagrantup.com/precise64.box"
v.customize ["modifyvm", :id, "--memory", "2048"]
end
config.vm.provider :vmware_fusion do |v, override|
override.vm.box_url = "http://files.vagrantup.com/precise64_vmware.box"
end
config.vm.provider :vmware_workstation do |v, override|
v.vmx['memsize'] = 2048
override.vm.box_url = "http://files.vagrantup.com/precise64_vmware.box"
end
config.berkshelf.enabled = true
config.vm.provision :chef_solo do |chef|
chef.add_recipe 'apt::default'
chef.add_recipe 'git'
chef.add_recipe 'chef-golang'
chef.add_recipe 'ruby_build'
chef.add_recipe 'rbenv::user'
chef.add_recipe 'java::openjdk'
chef.add_recipe 'sqlite'
chef.add_recipe 'mysql::server'
chef.add_recipe 'postgresql::server'
chef.add_recipe 'rbenv-alias'
chef.add_recipe 'rbenv-sudo'
chef.add_recipe 'cloudfoundry::warden'
chef.add_recipe 'cloudfoundry::dea'
chef.add_recipe 'cloudfoundry::uaa'
chef.add_recipe 'cloudfoundry::cf_bootstrap'
chef.json = {
'rbenv' => {
'user_installs' => [ {
'user' => 'vagrant',
'global' => '1.9.3-p392',
'rubies' => [ '1.9.3-p392' ],
'gems' => {
'1.9.3-p392' => [
{ 'name' => 'bundler' }
]
},
} ]
},
'rbenv-alias' => {
'user_rubies' => [ {
'user' => 'vagrant',
'installed' => '1.9.3-p392',
'alias' => '1.9.3'
} ]
},
'mysql' => {
'server_root_password' => '',
'server_repl_password' => '',
'server_debian_password' => ''
},
'postgresql' => {
'password' => {
'postgres' => ''
}
}
}
end
end