diff --git a/scripts/add-compute.sh b/scripts/add-compute.sh index 3f4aab36c4..d4826ebb09 100755 --- a/scripts/add-compute.sh +++ b/scripts/add-compute.sh @@ -15,8 +15,15 @@ # limitations under the License. export OSA_REPO_PATH=${OSA_REPO_PATH:-"/opt/openstack-ansible"} +export OSA_CONFIG_DIR=${OSA_CONFIG_DIR:-"/etc/openstack_deploy"} export HOSTS=${1:-""} +export OSA_USER_RC=${OSA_USER_RC:-${OSA_CONFIG_DIR}/user.rc} + +if [[ -f ${OSA_USER_RC} ]]; then + . ${OSA_USER_RC} +fi + function define_tasks { if [[ ! -z ${PRE_OSA_TASKS} ]]; then