105 Unstar Star 261 Fork 89

v55448330 / lazy-balancerPython

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
Vagrantfile 868 Bytes
Copy Edit Web IDE Raw Blame History
v55448330 authored 2019-11-06 16:13 . fix proxy template
# -*- 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 = "https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-vagrant.box"
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]
end
end
config.vm.provision "shell", privileged: true, path: "deploy.sh"
end

Comment ( 0 )

Sign in for post a comment

Python
1
https://gitee.com/v55448330/lazy-balancer.git
git@gitee.com:v55448330/lazy-balancer.git
v55448330
lazy-balancer
lazy-balancer
master

Search