
Tested the scripts in the Atlanta Lab and ran into issues with 'max_shipyard_count' and 'shipyard_query_time' variables as we will need to export them as environment variables as well. This patch set is meant to correct the problem. Change-Id: I0ae407adac3df6a0cbe027a70940ee65904a7854
33 lines
1.5 KiB
Bash
Executable File
33 lines
1.5 KiB
Bash
Executable File
#!/bin/bash
|
|
# Copyright 2018 AT&T Intellectual Property. All other rights reserved.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
# Define Variable
|
|
namespace="${namespace:-ucp}"
|
|
|
|
# Export Environment Variables
|
|
# Note that 'shipyard_query_time' has a default value of 90 seconds
|
|
# Note that 'max_shipyard_count' has a default value of 60 loops (based on
|
|
# 90 seconds back off per cycle, i.e. 60 * 90 = 5400 seconds = 1.5 hr)
|
|
# Note that user can use a different value for each of the variables by
|
|
# exporting the required environment variable prior to running the script
|
|
export max_shipyard_count=${max_shipyard_count:-60}
|
|
export shipyard_query_time=${shipyard_query_time:-90}
|
|
export OS_AUTH_URL="${OS_AUTH_URL:-http://keystone.${namespace}:80/v3}"
|
|
export OS_PASSWORD="${OS_PASSWORD:-password}"
|
|
export OS_PROJECT_DOMAIN_NAME="${OS_PROJECT_DOMAIN_NAME:-default}"
|
|
export OS_PROJECT_NAME="${OS_PROJECT_NAME:-service}"
|
|
export OS_USERNAME="${OS_USERNAME:-shipyard}"
|
|
export OS_USER_DOMAIN_NAME="${OS_USER_DOMAIN_NAME:-default}"
|