Skip to content

Commit 449ab2f

Browse files
committed
Use linked clones in Orchestration Vagrantfile for ~30s speedup.
1 parent a1d33a6 commit 449ab2f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

orchestration/Vagrantfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,30 @@
44
VAGRANTFILE_API_VERSION = "2"
55

66
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
7+
# General Vagrant VM configuration.
8+
config.vm.box = "geerlingguy/centos7"
79
config.ssh.insert_key = false
810
config.vm.synced_folder ".", "/vagrant", disabled: true
911
config.vm.provider :virtualbox do |vb|
1012
vb.customize ["modifyvm", :id, "--memory", "256"]
13+
vb.linked_clone = true
1114
end
1215

1316
# Application server 1.
1417
config.vm.define "app1" do |app|
1518
app.vm.hostname = "orc-app1.dev"
16-
app.vm.box = "geerlingguy/centos7"
17-
app.vm.network :private_network, ip: "192.168.60.4"
19+
app.vm.network :private_network, ip: "172.16.60.4"
1820
end
1921

2022
# Application server 2.
2123
config.vm.define "app2" do |app|
2224
app.vm.hostname = "orc-app2.dev"
23-
app.vm.box = "geerlingguy/centos7"
24-
app.vm.network :private_network, ip: "192.168.60.5"
25+
app.vm.network :private_network, ip: "172.16.60.5"
2526
end
2627

2728
# Database server.
2829
config.vm.define "db" do |db|
2930
db.vm.hostname = "orc-db.dev"
30-
db.vm.box = "geerlingguy/centos7"
31-
db.vm.network :private_network, ip: "192.168.60.6"
31+
db.vm.network :private_network, ip: "172.16.60.6"
3232
end
3333
end

0 commit comments

Comments
 (0)