#!/bin/bash # The following environment variables must be set: # # maxscale_sshkey The ssh key to the MaxScale VM # maxscale_access_user The username on the VM # maxscale_IP The IP address of the MaxScale VM # node_000_network IP address of the # # The Vagrant setup is located in ~/mdbci/my-test-build/. Vagrant is used # for SSH access to the machines. # # The backend server also must have log-slave-updates enabled. # This is the VM name where the replication-manager is installed mrm=galera_000 # Helper functions for ssh and scp function do_ssh() { cd ~/mdbci/my-test-build/ vagrant ssh $1 -c "$2" cd - > /dev/null } # Helper functions for ssh and scp function do_scp() { cd ~/mdbci/my-test-build/ local dest=$(vagrant ssh-config $1|grep HostName|sed 's/.*HostName //') scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $2 vagrant@$dest:~ cd - > /dev/null } cat <