diff --git a/maxscale-system-test/mdbci/set_env.sh b/maxscale-system-test/mdbci/set_env.sh index 8461744c3..a27c8dca6 100644 --- a/maxscale-system-test/mdbci/set_env.sh +++ b/maxscale-system-test/mdbci/set_env.sh @@ -24,9 +24,6 @@ export maxscale_N=`cat "$MDBCI_VM_PATH/$config_name"_network_config | grep maxsc sed "s/^/export /g" "$MDBCI_VM_PATH/$config_name"_network_config > "$curr_dir"/"$config_name"_network_config_export source "$curr_dir"/"$config_name"_network_config_export -# IP Of MaxScale machine -export maxscale_IP=$maxscale_network -export maxscale_sshkey=$maxscale_keyfile # User name and Password for Master/Slave replication setup (should have all PRIVILEGES) export node_user="skysql" @@ -83,9 +80,13 @@ do done done -export maxscale_access_user=$maxscale_whoami +export maxscale_access_user=$maxscale_000_whoami export maxscale_access_sudo="sudo " +# IP Of MaxScale machine +export maxscale_IP=$maxscale_000_IP +export maxscale_sshkey=$maxscale_000_keyfile + # Sysbench directory (should be sysbench >= 0.5) export sysbench_dir=${sysbench_dir:-"$HOME/sysbench_deb7/sysbench/"} diff --git a/maxscale-system-test/mdbci/set_run_test_variables.sh b/maxscale-system-test/mdbci/set_run_test_variables.sh index 152d4f229..4c515a04c 100644 --- a/maxscale-system-test/mdbci/set_run_test_variables.sh +++ b/maxscale-system-test/mdbci/set_run_test_variables.sh @@ -8,7 +8,7 @@ echo "MDBCI_VM_PATH=$MDBCI_VM_PATH" export box=${box:-"centos_7_libvirt"} echo "box=$box" -export template=${template:-"default"} +export template=${template:-"twomaxscales_full"} export curr_date=`date '+%Y-%m-%d_%H-%M'` diff --git a/maxscale-system-test/mdbci/templates/twomaxscales_full.json.template b/maxscale-system-test/mdbci/templates/twomaxscales_full.json.template new file mode 100644 index 000000000..368900fcc --- /dev/null +++ b/maxscale-system-test/mdbci/templates/twomaxscales_full.json.template @@ -0,0 +1,116 @@ +{ + "node_000" : + { + "hostname" : "node000", + "box" : "${backend_box}", + "memory_size" : "${vm_memory}", + "product" : { + "name": "${product}", + "version": "${version}", + "cnf_template" : "server1.cnf", + "cnf_template_path": "${cnf_path}" + } + + }, + + "node_001" : + { + "hostname" : "node001", + "box" : "${backend_box}", + "memory_size" : "${vm_memory}", + "product" : { + "name": "${product}", + "version": "${version}", + "cnf_template" : "server2.cnf", + "cnf_template_path": "${cnf_path}" + } + }, + + "node_002" : + { + "hostname" : "node002", + "box" : "${backend_box}", + "memory_size" : "${vm_memory}", + "product" : { + "name": "${product}", + "version": "${version}", + "cnf_template" : "server3.cnf", + "cnf_template_path": "${cnf_path}" + } + }, + + "node_003" : + { + "hostname" : "node003", + "box" : "${backend_box}", + "memory_size" : "${vm_memory}", + "product" : { + "name": "${product}", + "version": "${version}", + "cnf_template" : "server4.cnf", + "cnf_template_path": "${cnf_path}" + } + }, + "galera_001" : + { + "hostname" : "galera001", + "box" : "${backend_box}", + "memory_size" : "${vm_memory}", + "product" : { + "name": "galera", + "version": "${galera_version}", + "cnf_template" : "galera_server2.cnf", + "cnf_template_path": "${cnf_path}" + } + }, + + "galera_002" : + { + "hostname" : "galera002", + "box" : "${backend_box}", + "memory_size" : "${vm_memory}", + "product" : { + "name": "galera", + "version": "${galera_version}", + "cnf_template" : "galera_server3.cnf", + "cnf_template_path": "${cnf_path}" + } + }, + + "galera_003" : + { + "hostname" : "galera003", + "box" : "${backend_box}", + "memory_size" : "${vm_memory}", + "product" : { + "name": "galera", + "version": "${galera_version}", + "cnf_template" : "galera_server4.cnf", + "cnf_template_path": "${cnf_path}" + } + }, + + "maxscale_000" : + { + "hostname" : "maxscale", + "box" : "${box}", + "memory_size" : "${vm_memory}", + "product" : { + "name" : "maxscale_ci", + "version" : "${target}" + } + + }, + + "maxscale_001" : + { + "hostname" : "maxscale", + "box" : "${box}", + "memory_size" : "${vm_memory}", + "product" : { + "name" : "maxscale_ci", + "version" : "${target}" + } + + } +}