Fetch the repository succeeded.
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.require_version ">= 1.6.0"
vms = [
{
:name => "balancer1",
:eth1 => "192.168.100.101",
:mem => "2048",
:cpu => "1"
},
#{
# :name => "balancer2",
# :eth1 => "192.168.100.102",
# :mem => "2048",
# :cpu => "1"
#}
]
Vagrant.configure(2) do |config|
config.vm.box = "generic/ubuntu1804"
vms.each do |opts|
config.vm.define opts[:name] do |config|
config.vm.hostname = opts[:name]
config.vm.provider "virtualbox" do |vb|
vb.memory = opts[:mem]
vb.cpus = opts[:cpu]
end
config.vm.network :private_network, ip: opts[:eth1]
config.vm.synced_folder ".", "/app/lazy_balancer"
end
end
config.vm.provision "shell", privileged: true, path: "deploy.sh"
end
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。