2 ###############################################################################
3 # Copyright (c) 2015 Huawei Tech.
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
13 RELENG_REPO=https://gerrit.opnfv.org/gerrit/releng
14 RELENG_REPO_DIR=/tmp/opnfvrepo/releng
15 #RELENG_BRANCH=master # branch, tag, sha1 or refspec
18 INSTALLER_IP=10.20.0.2
21 EXTERNAL_NET=net04_ext
23 echo "INFO: Creating openstack credentials .."
25 mkdir -p ${RELENG_REPO_DIR}
26 git config --global http.sslVerify false
27 git clone ${RELENG_REPO} ${RELENG_REPO_DIR}
29 # Create openstack credentials
30 $RELENG_REPO_DIR/utils/fetch_os_creds.sh \
32 -i ${INSTALLER_TYPE} -a ${INSTALLER_IP}
36 # FIXME: Temporary OPNFV playground hack
37 if [ "$INSTALLER_TYPE" == "fuel" ]; then
38 ssh_opts="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
39 if sshpass -p r00tme ssh 2>/dev/null $ssh_opts root@${INSTALLER_IP} \
40 fuel environment --env 1 | grep opnfv-virt; then
41 echo "INFO: applying OPNFV playground hack"
42 export OS_ENDPOINT_TYPE='publicURL'
46 export EXTERNAL_NET INSTALLER_TYPE POD_NAME