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=/home/opnfv/repos/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 # Create openstack credentials
26 $RELENG_REPO_DIR/utils/fetch_os_creds.sh \
28 -i ${INSTALLER_TYPE} -a ${INSTALLER_IP}
32 # FIXME: Temporary OPNFV playground hack
33 if [ "$INSTALLER_TYPE" == "fuel" ]; then
34 ssh_opts="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
35 if sshpass -p r00tme ssh 2>/dev/null $ssh_opts root@${INSTALLER_IP} \
36 fuel environment --env 1 | grep opnfv-virt; then
37 echo "INFO: applying OPNFV playground hack"
38 export OS_ENDPOINT_TYPE='publicURL'
42 export EXTERNAL_NET INSTALLER_TYPE POD_NAME