Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
Vagrantfile 863 Bytes
Copy Edit Raw Blame History
XiaoBao authored 2023-11-16 21:34 . upgrade to 1.3.7beta
# -*- 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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化