在openrc中从keystone V2 到 V3

#!/bin/bash
if [ "$#" -ne 1 ]
then
    echo "Usage $0 <keystone.rc>"
    exit 1
fi

. $1

NEW_OS_AUTH_URL=`echo $OS_AUTH_URL | sed 's!v2.0!v3!'`

cat << EOF
export OS_AUTH_URL=$NEW_OS_AUTH_URL
export OS_USERNAME=$OS_USERNAME
export OS_PASSWORD=$OS_PASSWORD
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_DOMAIN_NAME=Default
export OS_PROJECT_NAME=$OS_TENANT_NAME
export OS_IDENTITY_API_VERSION=3
EOF

 

posted on 2016-04-22 12:05  allcloud  阅读(225)  评论(0编辑  收藏  举报

导航