下面是我的流浪文件。但是,它没有创建 1 个 RedHat 虚拟机和 2 个 Ubuntu 虚拟机,而是“流浪”了 3 个 Ubuntu 虚拟机。
有人可以告诉我为什么吗?先感谢您!
Vagrant.configure("2") do |config|
config.ssh.insert_key = false
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.provider :virtualbox do |v|
v.memory = 4000
v.linked_clone = false
end
# App server 1
config.vm.box = "geerlingguy/centos7"
config.vm.define "app1" do |app|
app.vm.hostname = "orc-app1.test"
app.vm.network :private_network, ip: "192.168.60.4"
end
# App server 2
config.vm.box = "geerlingguy/ubuntu2004"
config.vm.define "app2" do |app|
app.vm.hostname = "orc-app2.test"
app.vm.network :private_network, ip: "192.168.60.5"
end
# DB server
config.vm.box = "geerlingguy/ubuntu2004"
config.vm.define "db" do |db|
db.vm.hostname = "orc-db.test"
db.vm.network :private_network, ip: "192.168.60.6"
end
end