forked from AbelHu/bosh-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
33 lines (27 loc) · 1.32 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
Vagrant.configure('2') do |config|
config.vm.box = 'cloudfoundry/bosh-lite'
config.vm.box_version = '388'
config.vm.provider :virtualbox do |v, override|
# To use a different IP address for the bosh-lite director, uncomment this line:
# override.vm.network :private_network, ip: '192.168.59.4', id: :local
end
[:vmware_fusion, :vmware_desktop, :vmware_workstation].each do |provider|
config.vm.provider provider do |v, override|
# To use a different IP address for the bosh-lite director, uncomment this line:
# override.vm.network :private_network, ip: '192.168.54.4', id: :local
end
end
config.vm.provider :aws do |v, override|
# To turn off public IP echoing, uncomment this line:
# override.vm.provision :shell, id: "public_ip", run: "always", inline: "/bin/true"
# To turn off CF port forwarding, uncomment this line:
# override.vm.provision :shell, id: "port_forwarding", run: "always", inline: "/bin/true"
v.tags = {
'PipelineName' => 'bosh-agent'
}
end
config.vm.synced_folder '.', '/home/vagrant/go/src/github.com/cloudfoundry/bosh-agent'
# 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: "chmod 777 /var/vcap/sys/log/cpi"
end