X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=mcp%2Fscripts%2Fglobals.sh;h=9ef9eba126180a4fabb4248ada9b5c755232be67;hb=24dad46d51e6740400effd037f14d99defc5eafd;hp=6dabe65febc98a556fa171e82b8c993688250ea5;hpb=f69a28ea02cc6a53d3b3d289576b17fbb31a67cc;p=fuel.git diff --git a/mcp/scripts/globals.sh b/mcp/scripts/globals.sh index 6dabe65fe..9ef9eba12 100644 --- a/mcp/scripts/globals.sh +++ b/mcp/scripts/globals.sh @@ -1,4 +1,4 @@ -#!/bin/bash -ex +#!/bin/bash -e ############################################################################## # Copyright (c) 2017 Ericsson AB, Mirantis Inc., Enea AB and others. # All rights reserved. This program and the accompanying materials @@ -8,12 +8,13 @@ ############################################################################## # Global variables +export CI_DEBUG=${CI_DEBUG:-0}; [[ "${CI_DEBUG}" =~ (false|0) ]] || set -x export SSH_KEY=${SSH_KEY:-"/var/lib/opnfv/mcp.rsa"} export SALT_MASTER=${INSTALLER_IP:-10.20.0.2} export SALT_MASTER_USER=${SALT_MASTER_USER:-ubuntu} export MAAS_IP=${MAAS_IP:-${SALT_MASTER%.*}.3} -# These should be determined from PDF later +# Define a default network address, baremetal might override it via PDF export MAAS_PXE_NETWORK=${MAAS_PXE_NETWORK:-192.168.11.0} # Derivated from above global vars