ffcc710cbf7e1c6ca4a3fe66529865f9856e04e3
[yardstick.git] / tests / ci / scp_storperf_files.sh
1 #!/bin/bash
2
3 ##############################################################################
4 # Copyright (c) 2016 Huawei Technologies Co.,Ltd and others.
5 #
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Apache License, Version 2.0
8 # which accompanies this distribution, and is available at
9 # http://www.apache.org/licenses/LICENSE-2.0
10 ##############################################################################
11
12 # Copy storperf_admin-rc to deployment location.
13
14 ssh_options="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
15
16 case "$NODE_NAME" in
17     "huawei-pod1")
18         JUMP_HOST_IP='192.168.10.6'
19         ;;
20     "huawei-pod2")
21         JUMP_HOST_IP='192.168.11.2'
22         ;;
23     *)
24         # no node name, exit
25         exit 1
26         ;;
27 esac
28 export JUMP_HOST_IP
29
30 sshpass -p root scp 2>/dev/null $ssh_options ~/storperf_admin-rc \
31         root@${JUMP_HOST_IP}:/root/ &> /dev/null
32 sshpass -p root scp 2>/dev/null $ssh_options /home/opnfv/repos/storperf/docker-compose/docker-compose.yaml \
33         root@${JUMP_HOST_IP}:/root/ &> /dev/null
34 sshpass -p root scp 2>/dev/null $ssh_options /home/opnfv/repos/storperf/docker-compose/nginx.conf \
35         root@${JUMP_HOST_IP}:/root/ &> /dev/null