Update stor4nfv install scripts according to opensds aruba release
[stor4nfv.git] / ci / ansible / script / sdsrc
1 #!/usr/bin/env bash
2
3 # Copyright (c) 2018 Huawei Technologies Co., Ltd. All Rights Reserved.
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 #     http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16
17 # Global
18 HOST_IP=${HOST_IP:-}
19 HOST_IP=$(get_default_host_ip "$HOST_IP" "inet")
20 if [ "$HOST_IP" == "" ]; then
21     die $LINENO "Could not determine host ip address. See local.conf for suggestions on setting HOST_IP."
22 fi
23
24 # OpenSDS configuration.
25 OPENSDS_VERSION=${OPENSDS_VERSION:-v1beta}
26
27 # OpenSDS service name in keystone.
28 OPENSDS_SERVER_NAME=${OPENSDS_SERVER_NAME:-opensds}
29
30 # devstack keystone configuration
31 STACK_GIT_BASE=${STACK_GIT_BASE:-https://git.openstack.org}
32 STACK_USER_NAME=${STACK_USER_NAME:-stack}
33 STACK_PASSWORD=${STACK_PASSWORD:-opensds@123}
34 STACK_HOME=${STACK_HOME:-/opt/stack}
35 STACK_BRANCH=${STACK_BRANCH:-stable/queens}
36 DEV_STACK_DIR=$STACK_HOME/devstack
37
38 GOPATH=${GOPATH:-$HOME/gopath}
39 OPENSDS_DIR=${GOPATH}/src/github.com/opensds/opensds
40