File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ # -*- mode: ruby -*-
2
+ # vi: set ft=ruby :
3
+
4
+ Vagrant . configure ( "2" ) do |config |
5
+ config . vm . box = "ubuntu/bionic64"
6
+
7
+ config . vm . provider "virtualbox" do |vb |
8
+ vb . memory = "512"
9
+ vb . customize [ "modifyvm" , :id , "--uartmode1" , "disconnected" ]
10
+ end
11
+
12
+ # must be at the top
13
+ config . vm . define "lb-0" do |c |
14
+ c . vm . hostname = "lb-0"
15
+ c . vm . network "private_network" , ip : "10.240.0.40"
16
+
17
+ c . vm . provision :shell , :path => "scripts/bootstrap/vagrant-setup-haproxy.sh"
18
+
19
+ c . vm . provider "virtualbox" do |vb |
20
+ vb . memory = "256"
21
+ end
22
+ end
23
+
24
+ ( 0 ..2 ) . each do |n |
25
+ config . vm . define "controller-#{ n } " do |c |
26
+ c . vm . hostname = "controller-#{ n } "
27
+ c . vm . network "private_network" , ip : "10.240.0.1#{ n } "
28
+
29
+ c . vm . provision :shell , :path => "scripts/bootstrap/vagrant-setup-hosts-file.sh"
30
+ end
31
+ end
32
+
33
+ ( 0 ..2 ) . each do |n |
34
+ config . vm . define "worker-#{ n } " do |c |
35
+ c . vm . hostname = "worker-#{ n } "
36
+ c . vm . network "private_network" , ip : "10.240.0.2#{ n } "
37
+
38
+ c . vm . provision :shell , :path => "scripts/bootstrap/vagrant-setup-routes.sh"
39
+ c . vm . provision :shell , :path => "scripts/bootstrap/vagrant-setup-hosts-file.sh"
40
+ end
41
+ end
42
+
43
+ end
You can’t perform that action at this time.
0 commit comments