summaryrefslogtreecommitdiffstats
path: root/etc
AgeCommit message (Expand)AuthorFilesLines
2017-07-19Bypass assertion bug by downgrading docutilsTrevor Bramwell1-1/+1
2017-01-27New Tox build scriptShubhamRathi1-0/+1
2017-01-09Requirement updated to support sphinx_bootstrap_themeShubhamRathi1-0/+1
2016-09-05Removing excess License info.ChristopherPrice1-1/+0
2016-09-01Adding creative commons license info.ChristopherPrice1-0/+1
2016-08-11add version, builddate and copyright in sidebarRyota MIBU1-0/+3
2016-08-11remove 'Save to PDF' link from normal HTML pagesRyota MIBU1-1/+3
2016-08-11add 'Save to PDF' link in sidebarRyota MIBU1-0/+19
2016-07-22improve configRyota MIBU1-40/+0
2016-07-07migrate docs-build.sh from releng repoRyota MIBU3-0/+46
t: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
#!/bin/bash

##############################################################################
# Copyright (c) 2016 Huawei Technologies Co.,Ltd and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################

# Copy storperf_admin-rc to deployment location.

ssh_options="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"

scp_files(){
    export JUMP_HOST_IP
    sshpass -p root scp 2>/dev/null $ssh_options ~/storperf_admin-rc \
            root@${JUMP_HOST_IP}:/root/ &> /dev/null
    sshpass -p root scp 2>/dev/null $ssh_options /home/opnfv/repos/storperf/docker-compose/docker-compose.yaml \
            root@${JUMP_HOST_IP}:/root/ &> /dev/null
}

case "$NODE_NAME" in
    "huawei-pod1")
        JUMP_HOST_IP='192.168.10.6'
        scp_files
        ;;
    "huawei-pod2")
        JUMP_HOST_IP='192.168.11.2'
        scp_files
        ;;
    *)
        # no node name, exit
        echo "storperf test case will not run on this pod, skipping scp files..."
        ;;
esac