forked from cloudfoundry/bosh-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
24 lines (20 loc) · 862 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
Vagrant.configure('2') do |config|
config.vm.box = 'cloudfoundry/bosh-lite'
[:virtualbox, :vmware_fusion, :vmware_desktop, :vmware_workstation].each do |provider|
config.vm.provider provider do |v, override|
v.memory = 1024 * 4
v.cpus = 4
end
end
config.vm.provider :aws do |v, override|
v.tags = { 'PipelineName' => 'bosh-init' }
v.associate_public_ip = true
v.access_key_id = ENV['BOSH_AWS_ACCESS_KEY_ID'] || ''
v.secret_access_key = ENV['BOSH_AWS_SECRET_ACCESS_KEY'] || ''
v.subnet_id = ENV['BOSH_LITE_SUBNET_ID'] || ''
v.ami = ''
end
config.vm.synced_folder Dir.pwd, '/vagrant', disabled: true
config.vm.provision :shell, inline: "mkdir -p /vagrant && chmod 777 /vagrant"
config.vm.provision :shell, inline: "mkdir -p /var/vcap/sys/log/warden_cpi && chmod 777 /var/vcap/sys/log/warden_cpi"
end