From 3b758f3406244f0fa5d14ccfbaafea7234860b46 Mon Sep 17 00:00:00 2001 From: Sachin Prabhu Date: Thu, 26 Mar 2020 17:41:11 +0000 Subject: Create new VM client1 This vm will be used to run the client tests on the cluster. Signed-off-by: Sachin Prabhu --- vagrant/Vagrantfile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/vagrant/Vagrantfile b/vagrant/Vagrantfile index e830110..cca772f 100644 --- a/vagrant/Vagrantfile +++ b/vagrant/Vagrantfile @@ -11,6 +11,7 @@ PUBLIC_NETWORK_BASE = "192.168.123" #LIBVIRT_STORAGE_POOL = "data" SETUP_IP = "#{PRIVATE_NETWORK_BASE}.200" +CLIENT_IP = "#{PUBLIC_NETWORK_BASE}.5" Vagrant.configure("2") do |config| config.ssh.insert_key = false @@ -68,6 +69,14 @@ Vagrant.configure("2") do |config| end end + + # Client vm: + # This VM will connect to the cluster over the public ip addresses + config.vm.define "client1" do |setup| + setup.vm.hostname = "client1" + setup.vm.network :private_network, ip: "#{CLIENT_IP}" + end + # setup vm: # We will runn all our setup playbooks from there. config.vm.define "setup" do |setup| @@ -79,8 +88,10 @@ Vagrant.configure("2") do |config| ansible.playbook = "no-op-playbook.yml" ansible.groups = { "admin" => [ "setup" ], + "clients" => [ "client1" ], "cluster" => (0..NODES-1).map { |i| "storage#{i}" } } end end + end -- cgit