Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Verification of Master HA setting and behavior
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define "master1" do |master1|
master1.vm.provider "virtualbox" do |v|
v.name = "master1"
v.memory = 2048
end
master1.vm.box = "ubuntu/trusty64"
master1.vm.hostname = "master1"
master1.vm.network "private_network", ip: "192.168.33.10"
end
config.vm.define "master2" do |master2|
master2.vm.provider "virtualbox" do |v|
v.name = "master2"
v.memory = 2048
end
master2.vm.box = "ubuntu/trusty64"
master2.vm.hostname = "master2"
master2.vm.network "private_network", ip: "192.168.33.11"
end
config.vm.define "slave1" do |slave1|
slave1.vm.provider "virtualbox" do |v|
v.name = "slave1"
v.memory = 2048
end
slave1.vm.box = "ubuntu/trusty64"
slave1.vm.network "private_network", ip: "192.168.33.20"
slave1.vm.hostname = "slave1"
end
config.vm.define "slave2" do |slave2|
slave2.vm.provider "virtualbox" do |v|
v.name = "slave2"
v.memory = 2048
end
slave2.vm.box = "ubuntu/trusty64"
slave2.vm.network "private_network", ip: "192.168.33.21"
slave2.vm.hostname = "slave2"
end
config.vm.define "mha" do |mha|
mha.vm.provider "virtualbox" do |v|
v.name = "mha"
end
mha.vm.box = "ubuntu/trusty64"
mha.vm.network "private_network", ip: "192.168.33.30"
mha.vm.hostname = "mha"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment