-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
30 lines (26 loc) · 1.04 KB
/
Vagrantfile
File metadata and controls
30 lines (26 loc) · 1.04 KB
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
ENV['VAGRANT_DEFAULT_PROVIDER'] = 'virtualbox'
# default value, override when calling vagrant
ENV['BFIP'] ||= "192.168.10.60"
ENV['PGIP'] ||= "192.168.10.59"
# default box
# override with bfbase if installed
ENV['VGBOX'] ||= "bento/debian-12"
Vagrant.configure("2") do |config|
config.vm.box = ENV['VGBOX'] ||= "bento/debian-12"
config.vm.synced_folder ".", "/vagrant", type: "sshfs"
# this provisioner should basically be a no-op if using
# a bfbase box that's been previously set up
config.vm.provision "shell", path: "base_provision.sh"
config.vm.define "testbf" do |bf|
bf.vm.network :public_network, bridge: 'enp0s7', ip: ENV['BFIP']
bf.vm.provision :shell, :path => "provision.sh",
:args => [ ENV['BFIP'], ENV['PGIP'] ]
bf.vm.hostname = 'bfserver'
end
config.vm.define "pgweb" do |pg|
pg.vm.network :public_network, bridge: 'enp0s7', ip: ENV['PGIP']
pg.vm.provision :shell, :path => "pg_provision.sh",
:args => [ ENV['BFIP'], ENV['PGIP'] ]
pg.vm.hostname = 'pgweb'
end
end