-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathVagrantfile
38 lines (32 loc) · 1.52 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
if Vagrant.has_plugin?("vagrant-env")
config.env.enable
end
config.vm.box = "base"
config.nfs.functional = false
config.smb.functional = false
config.vm.provision "shell", path: "ci/provision-system.sh", binary: true
config.vm.provision "shell", path: "ci/provision-cluster.sh", binary: true
config.vm.provision "shell", path: "ci/provision-vmck.sh", binary: true
config.vm.provision "shell", path: "ci/provision-acs-interface.sh", binary: true
config.vm.provider :vmck do |vmck|
vmck.image_path = 'imgbuild-cluster.qcow2.tar.gz'
vmck.vmck_url = ENV['VMCK_URL']
vmck.memory = 2048
vmck.cpus = 2
vmck.name = ENV['VMCK_NAME']
end
config.vm.provider "virtualbox" do |vb, override|
override.vm.box = "hashicorp/bionic64"
config.vm.network :forwarded_port, guest: 4646, guest_ip: "10.66.60.1", host: 4646, host_ip: "127.0.0.1"
config.vm.network :forwarded_port, guest: 8500, guest_ip: "10.66.60.1", host: 8500, host_ip: "127.0.0.1"
config.vm.network :forwarded_port, guest: 8200, guest_ip: "10.66.60.1", host: 8200, host_ip: "127.0.0.1"
config.vm.network :forwarded_port, guest: 10000, guest_ip: "10.66.60.1", host: 10000, host_ip: "127.0.0.1"
config.vm.network :forwarded_port, guest: 8000, guest_ip: "10.66.60.1", host: 8000, host_ip: "127.0.0.1"
config.vm.network :forwarded_port, guest: 9000, guest_ip: "10.66.60.1", host: 9000, host_ip: "127.0.0.1"
vb.memory = "2048"
vb.cpus = "2"
end
end