aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/create_fuel_pod_yaml/templates
diff options
context:
space:
mode:
authorRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>2018-06-28 07:23:30 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-06-28 07:23:30 +0000
commit135f47250e9253d5065fa4c51550d131739412ec (patch)
tree0a7e88ee03bebf8840cf7eb4af8acb17a8271246 /ansible/roles/create_fuel_pod_yaml/templates
parent0c92fe258937aa056ccbc138bd819c15705b3469 (diff)
parentefd4a531a13eed76b246f8fceeb554212e56fbf1 (diff)
Merge "Update neutron delete_neutron_net function." into stable/fraser
Diffstat (limited to 'ansible/roles/create_fuel_pod_yaml/templates')
0 files changed, 0 insertions, 0 deletions
ighlight .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

set -e

PIP_PATH=~/.pip
PIP_CONF=$PIP_PATH/pip.conf
EASY_INSTALL_CONF=~/.pydistutil.cfg

if [ "x$BASE_PIP_URL" = "x" ];then
    exit 0
fi

echo "config pip and easy_install"
HOSTNAME=`echo $BASE_PIP_URL | awk -F '[:/]' '{print $4}'`
if [ "x$HOSTNAME" = "x" ]; then
    echo "invalid BASE_PIP_URL: $BASE_PIP_URL"
    exit 1
fi

if [ ! -d $PIP_PATH ];then
    mkdir $PIP_PATH
fi

echo -e "[global]\ntrusted-host = $HOSTNAME\nindex-url = $BASE_PIP_URL\ntimeout = 6000" > $PIP_CONF
echo -e "[easy_install]\nindex-url = $BASE_PIP_URL\nfind-links = $BASE_PIP_URL" > $EASY_INSTALL_CONF